public final class Request extends Object
Constructor and Description |
---|
Request() |
public ReadListener getReadListener()
public void setReadListener(ReadListener listener)
public boolean sendAllDataReadEvent()
public MimeHeaders getMimeHeaders()
public UDecoder getURLDecoder()
public MessageBytes scheme()
public MessageBytes method()
public MessageBytes requestURI()
public MessageBytes decodedURI()
public MessageBytes queryString()
public MessageBytes protocol()
public MessageBytes serverName()
public int getServerPort()
public void setServerPort(int serverPort)
public MessageBytes remoteAddr()
public MessageBytes remoteHost()
public MessageBytes localName()
public MessageBytes localAddr()
public int getRemotePort()
public void setRemotePort(int port)
public int getLocalPort()
public void setLocalPort(int port)
public String getCharacterEncoding()
setCharacterEncoding(String)
or if no
call has been made to that method try to obtain if from the
content type.public Charset getCharset() throws UnsupportedEncodingException
setCharacterEncoding(String)
or if no
call has been made to that method try to obtain if from the
content type.UnsupportedEncodingException
- If the user agent has specified an
invalid character encoding@Deprecated public void setCharacterEncoding(String enc) throws UnsupportedEncodingException
enc
- The new encodingUnsupportedEncodingException
- If the encoding is invalidpublic void setCharset(Charset charset)
public void setContentLength(long len)
public int getContentLength()
public long getContentLengthLong()
public String getContentType()
public void setContentType(String type)
public MessageBytes contentType()
public void setContentType(MessageBytes mb)
public void setExpectation(boolean expectation)
public boolean hasExpectation()
public Response getResponse()
public void setResponse(Response response)
protected void setHook(ActionHook hook)
public void action(ActionCode actionCode, Object param)
public ServerCookies getCookies()
public Parameters getParameters()
public MessageBytes getRemoteUser()
public boolean getRemoteUserNeedsAuthorization()
public void setRemoteUserNeedsAuthorization(boolean remoteUserNeedsAuthorization)
public MessageBytes getAuthType()
public int getAvailable()
public void setAvailable(int available)
public boolean getSendfile()
public void setSendfile(boolean sendfile)
public boolean isFinished()
public boolean getSupportsRelativeRedirects()
public InputBuffer getInputBuffer()
public void setInputBuffer(InputBuffer inputBuffer)
@Deprecated public int doRead(ByteChunk chunk) throws IOException
doRead(ApplicationBufferHandler)
chunk
- The destination to which to copy the dataIOException
- If an I/O error occurs during the copypublic int doRead(ApplicationBufferHandler handler) throws IOException
handler
- The destination to which to copy the dataIOException
- If an I/O error occurs during the copypublic long getStartTime()
public void setStartTime(long startTime)
public final void setNote(int pos, Object value)
pos
- Index to use to store the notevalue
- The value to store at that indexpublic final Object getNote(int pos)
public void recycle()
public void updateCounters()
public RequestInfo getRequestProcessor()
public long getBytesRead()
public boolean isProcessing()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.