| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private final HashMap | |
| private final MessageBytes | |
| private int | |
| private long | |
| private String | |
| private Charset | |
| private long | contentLength
HTTP specific fields. |
| private MessageBytes | |
| private final MessageBytes | |
| private Exception | errorException
Holds request body reading error exception. |
| private boolean | expectation
Is there an expectation ? |
| private boolean | |
| private final MimeHeaders | |
| private volatile ActionHook | |
| private static final int | |
| private InputBuffer | inputBuffer
Associated input buffer. |
| pack-priv volatile ReadListener | |
| private final MessageBytes | |
| private final MessageBytes | |
| private int | |
| private final MessageBytes | |
| private final Object | |
| private final Object[] | notes
Notes. |
| private final Parameters | |
| private final Map | pathParameters
Path parameters |
| private final MessageBytes | |
| private final MessageBytes | |
| private final MessageBytes | |
| private boolean | |
| private final MessageBytes | |
| private final MessageBytes | |
| private int | |
| private final MessageBytes | |
| private boolean | |
| private final RequestInfo | |
| private volatile String | |
| private static final AtomicLong | |
| private Response | |
| private final MessageBytes | |
| private boolean | |
| private final ServerCookies | |
| private final MessageBytes | |
| private int | |
| private static final StringManager | |
| private long | |
| private long | |
| private final Map | |
| private final MessageBytes | |
| private final UDecoder | urlDecoder
URL decoder. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private boolean | |
| public void | |
| public MessageBytes | |
| public MessageBytes | |
| public int | Returns: The number of bytes copiedThe destination to which to copy the data handler)Read data from the input buffer and put it into ApplicationBufferHandler. |
| public Object | |
| public HashMap | |
| public MessageBytes | |
| public int | |
| public long | |
| public String | Returns: The value set viasetCharset(Charset) or if no call has been made to that method try to obtain
if from the content type.Get the character encoding used for this request. |
| public Charset | Returns: The value set viasetCharset(Charset) or if no call has been made to that method try to obtain
if from the content type.Get the character encoding used for this request. |
| private static String | getCharsetFromContentType(String
a content type header contentType)Parse the character encoding from the specified content type header. |
| public int | |
| public long | |
| public String | |
| public ServerCookies | |
| public Exception | Returns: The exception that occurredGet the Exception that occurred during the writing of the response. |
| public String | |
| public InputBuffer | |
| public int | |
| public MimeHeaders | |
| public Object | |
| public Parameters | |
| public String | |
| public String | |
| public ReadListener | |
| public int | |
| public MessageBytes | |
| public boolean | |
| public String | |
| public RequestInfo | |
| public Response | |
| public boolean | |
| public int | |
| public ServletConnection | |
| public long | |
| public long | |
| public boolean | |
| public long | |
| public Map | |
| public UDecoder | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public MessageBytes | |
| public MessageBytes | |
| public MessageBytes | |
| public void | |
| public MessageBytes | |
| public MessageBytes | |
| public MessageBytes | |
| public void | |
| public MessageBytes | |
| public MessageBytes | |
| public MessageBytes | |
| public MessageBytes | |
| public boolean | |
| public MessageBytes | Returns: The buffer holding the server name, if any. Use isNull() to check if there is no value set.Get the "virtual host", derived from the Host: header associated with this request. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setErrorException(Exception
The exception that occurred ex)Set the error Exception that occurred during the writing of the response processing. |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public void |
| allDataReadEventSent | back to summary |
|---|---|
| private final AtomicBoolean allDataReadEventSent | |
| attributes | back to summary |
|---|---|
| private final HashMap<String, Object> attributes | |
| authType | back to summary |
|---|---|
| private final MessageBytes authType | |
| available | back to summary |
|---|---|
| private int available | |
| bytesRead | back to summary |
|---|---|
| private long bytesRead | |
| characterEncoding | back to summary |
|---|---|
| private String characterEncoding | |
| charset | back to summary |
|---|---|
| private Charset charset | |
| contentLength | back to summary |
|---|---|
| private long contentLength HTTP specific fields. (remove them ?) | |
| contentTypeMB | back to summary |
|---|---|
| private MessageBytes contentTypeMB | |
| decodedUriMB | back to summary |
|---|---|
| private final MessageBytes decodedUriMB | |
| errorException | back to summary |
|---|---|
| private Exception errorException Holds request body reading error exception. | |
| expectation | back to summary |
|---|---|
| private boolean expectation Is there an expectation ? | |
| fireListener | back to summary |
|---|---|
| private boolean fireListener | |
| headers | back to summary |
|---|---|
| private final MimeHeaders headers | |
| hook | back to summary |
|---|---|
| private volatile ActionHook hook | |
| INITIAL_COOKIE_SIZE | back to summary |
|---|---|
| private static final int INITIAL_COOKIE_SIZE | |
| inputBuffer | back to summary |
|---|---|
| private InputBuffer inputBuffer Associated input buffer. | |
| listener | back to summary |
|---|---|
| pack-priv volatile ReadListener listener | |
| localAddrMB | back to summary |
|---|---|
| private final MessageBytes localAddrMB | |
| localNameMB | back to summary |
|---|---|
| private final MessageBytes localNameMB | |
| localPort | back to summary |
|---|---|
| private int localPort | |
| methodMB | back to summary |
|---|---|
| private final MessageBytes methodMB | |
| nonBlockingStateLock | back to summary |
|---|---|
| private final Object nonBlockingStateLock | |
| notes | back to summary |
|---|---|
| private final Object[] notes Notes. | |
| parameters | back to summary |
|---|---|
| private final Parameters parameters | |
| pathParameters | back to summary |
|---|---|
| private final Map<String, String> pathParameters Path parameters | |
| peerAddrMB | back to summary |
|---|---|
| private final MessageBytes peerAddrMB | |
| protoMB | back to summary |
|---|---|
| private final MessageBytes protoMB | |
| queryMB | back to summary |
|---|---|
| private final MessageBytes queryMB | |
| registeredForRead | back to summary |
|---|---|
| private boolean registeredForRead | |
| remoteAddrMB | back to summary |
|---|---|
| private final MessageBytes remoteAddrMB | |
| remoteHostMB | back to summary |
|---|---|
| private final MessageBytes remoteHostMB | |
| remotePort | back to summary |
|---|---|
| private int remotePort | |
| remoteUser | back to summary |
|---|---|
| private final MessageBytes remoteUser | |
| remoteUserNeedsAuthorization | back to summary |
|---|---|
| private boolean remoteUserNeedsAuthorization | |
| reqProcessorMX | back to summary |
|---|---|
| private final RequestInfo reqProcessorMX | |
| requestId | back to summary |
|---|---|
| private volatile String requestId | |
| requestIdGenerator | back to summary |
|---|---|
| private static final AtomicLong requestIdGenerator | |
| response | back to summary |
|---|---|
| private Response response | |
| schemeMB | back to summary |
|---|---|
| private final MessageBytes schemeMB | |
| sendfile | back to summary |
|---|---|
| private boolean sendfile | |
| serverCookies | back to summary |
|---|---|
| private final ServerCookies serverCookies | |
| serverNameMB | back to summary |
|---|---|
| private final MessageBytes serverNameMB | |
| serverPort | back to summary |
|---|---|
| private int serverPort | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| startTimeNanos | back to summary |
|---|---|
| private long startTimeNanos | |
| threadId | back to summary |
|---|---|
| private long threadId | |
| trailerFields | back to summary |
|---|---|
| private final Map<String, String> trailerFields | |
| uriMB | back to summary |
|---|---|
| private final MessageBytes uriMB | |
| urlDecoder | back to summary |
|---|---|
| private final UDecoder urlDecoder URL decoder. | |
| Request | back to summary |
|---|---|
| public Request() | |
| action | back to summary |
|---|---|
| public void action(ActionCode actionCode, Object param) | |
| addPathParameter | back to summary |
|---|---|
| public void addPathParameter(String name, String value) | |
| checkRegisterForRead | back to summary |
|---|---|
| private boolean checkRegisterForRead() | |
| clearRequestThread | back to summary |
|---|---|
| public void clearRequestThread() | |
| contentType | back to summary |
|---|---|
| public MessageBytes contentType() | |
| decodedURI | back to summary |
|---|---|
| public MessageBytes decodedURI() | |
| doRead | back to summary |
|---|---|
| public int doRead(ApplicationBufferHandler handler) throws IOException Read data from the input buffer and put it into ApplicationBufferHandler. The buffer is owned by the protocol implementation - it will be reused on the next read. The Adapter must either process the data in place or copy it to a separate buffer if it needs to hold it. In most cases this is done during byte->char conversions or via InputStream. Unlike InputStream, this interface allows the app to process data in place, without copy.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) | |
| getAttributes | back to summary |
|---|---|
| public HashMap | |
| getAuthType | back to summary |
|---|---|
| public MessageBytes getAuthType() | |
| getAvailable | back to summary |
|---|---|
| public int getAvailable() | |
| getBytesRead | back to summary |
|---|---|
| public long getBytesRead() | |
| getCharacterEncoding | back to summary |
|---|---|
| public String getCharacterEncoding() Get the character encoding used for this request.
| |
| getCharset | back to summary |
|---|---|
| public Charset getCharset() throws UnsupportedEncodingException Get the character encoding used for this request.
| |
| getCharsetFromContentType | back to summary |
|---|---|
| private static String getCharsetFromContentType(String contentType) Parse the character encoding from the specified content type header. If the content type is null, or there is no
explicit character encoding,
| |
| getContentLength | back to summary |
|---|---|
| public int getContentLength() | |
| getContentLengthLong | back to summary |
|---|---|
| public long getContentLengthLong() | |
| getContentType | back to summary |
|---|---|
| public String getContentType() | |
| getCookies | back to summary |
|---|---|
| public ServerCookies getCookies() | |
| getErrorException | back to summary |
|---|---|
| public Exception getErrorException() Get the Exception that occurred during the writing of the response.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name) | |
| getInputBuffer | back to summary |
|---|---|
| public InputBuffer getInputBuffer() | |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() | |
| getMimeHeaders | back to summary |
|---|---|
| public MimeHeaders getMimeHeaders() | |
| getNote | back to summary |
|---|---|
| public Object getNote(int pos) | |
| getParameters | back to summary |
|---|---|
| public Parameters getParameters() | |
| getPathParameter | back to summary |
|---|---|
| public String getPathParameter(String name) | |
| getProtocolRequestId | back to summary |
|---|---|
| public String getProtocolRequestId() | |
| getReadListener | back to summary |
|---|---|
| public ReadListener getReadListener() | |
| getRemotePort | back to summary |
|---|---|
| public int getRemotePort() | |
| getRemoteUser | back to summary |
|---|---|
| public MessageBytes getRemoteUser() | |
| getRemoteUserNeedsAuthorization | back to summary |
|---|---|
| public boolean getRemoteUserNeedsAuthorization() | |
| getRequestId | back to summary |
|---|---|
| public String getRequestId() | |
| getRequestProcessor | back to summary |
|---|---|
| public RequestInfo getRequestProcessor() | |
| getResponse | back to summary |
|---|---|
| public Response getResponse() | |
| getSendfile | back to summary |
|---|---|
| public boolean getSendfile() | |
| getServerPort | back to summary |
|---|---|
| public int getServerPort() | |
| getServletConnection | back to summary |
|---|---|
| public ServletConnection getServletConnection() | |
| getStartTime | back to summary |
|---|---|
| public long getStartTime() | |
| getStartTimeNanos | back to summary |
|---|---|
| public long getStartTimeNanos() | |
| getSupportsRelativeRedirects | back to summary |
|---|---|
| public boolean getSupportsRelativeRedirects() | |
| getThreadId | back to summary |
|---|---|
| public long getThreadId() | |
| getTrailerFields | back to summary |
|---|---|
| public Map | |
| getURLDecoder | back to summary |
|---|---|
| public UDecoder getURLDecoder() | |
| hasExpectation | back to summary |
|---|---|
| public boolean hasExpectation() | |
| isExceptionPresent | back to summary |
|---|---|
| public boolean isExceptionPresent() | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() | |
| isProcessing | back to summary |
|---|---|
| public boolean isProcessing() | |
| isReady | back to summary |
|---|---|
| public boolean isReady() | |
| isRequestThread | back to summary |
|---|---|
| public boolean isRequestThread() | |
| isTrailerFieldsReady | back to summary |
|---|---|
| public boolean isTrailerFieldsReady() | |
| localAddr | back to summary |
|---|---|
| public MessageBytes localAddr() | |
| localName | back to summary |
|---|---|
| public MessageBytes localName() | |
| method | back to summary |
|---|---|
| public MessageBytes method() | |
| onDataAvailable | back to summary |
|---|---|
| public void onDataAvailable() throws IOException | |
| peerAddr | back to summary |
|---|---|
| public MessageBytes peerAddr() | |
| protocol | back to summary |
|---|---|
| public MessageBytes protocol() | |
| queryString | back to summary |
|---|---|
| public MessageBytes queryString() | |
| recycle | back to summary |
|---|---|
| public void recycle() | |
| remoteAddr | back to summary |
|---|---|
| public MessageBytes remoteAddr() | |
| remoteHost | back to summary |
|---|---|
| public MessageBytes remoteHost() | |
| requestURI | back to summary |
|---|---|
| public MessageBytes requestURI() | |
| scheme | back to summary |
|---|---|
| public MessageBytes scheme() | |
| sendAllDataReadEvent | back to summary |
|---|---|
| public boolean sendAllDataReadEvent() | |
| serverName | back to summary |
|---|---|
| public MessageBytes serverName() Get the "virtual host", derived from the Host: header associated with this request.
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object o) | |
| setAvailable | back to summary |
|---|---|
| public void setAvailable(int available) | |
| setCharset | back to summary |
|---|---|
| public void setCharset(Charset charset) | |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(long len) | |
| setContentType | back to summary |
|---|---|
| public void setContentType(String type) | |
| setContentType | back to summary |
|---|---|
| public void setContentType(MessageBytes mb) | |
| setErrorException | back to summary |
|---|---|
| public void setErrorException(Exception ex) Set the error Exception that occurred during the writing of the response processing.
| |
| setExpectation | back to summary |
|---|---|
| public void setExpectation(boolean expectation) | |
| setHook | back to summary |
|---|---|
| protected void setHook(ActionHook hook) | |
| setInputBuffer | back to summary |
|---|---|
| public void setInputBuffer(InputBuffer inputBuffer) | |
| setLocalPort | back to summary |
|---|---|
| public void setLocalPort(int port) | |
| setNote | back to summary |
|---|---|
| public void setNote(int pos, Object value) Used to store private data. Thread data could be used instead - but if you have the req, getting/setting a note is just an array access, may be faster than ThreadLocal for very frequent operations. Example use: Catalina CoyoteAdapter: ADAPTER_NOTES = 1 - stores the HttpServletRequest object ( req/res) To avoid conflicts, note in the range 0 - 8 are reserved for the servlet container ( catalina connector, etc ), and values in 9 - 16 for connector use. 17-31 range is not allocated or used.
| |
| setReadListener | back to summary |
|---|---|
| public void setReadListener(ReadListener listener) | |
| setRemotePort | back to summary |
|---|---|
| public void setRemotePort(int port) | |
| setRemoteUserNeedsAuthorization | back to summary |
|---|---|
| public void setRemoteUserNeedsAuthorization(boolean remoteUserNeedsAuthorization) | |
| setRequestThread | back to summary |
|---|---|
| public void setRequestThread() | |
| setResponse | back to summary |
|---|---|
| public void setResponse(Response response) | |
| setSendfile | back to summary |
|---|---|
| public void setSendfile(boolean sendfile) | |
| setServerPort | back to summary |
|---|---|
| public void setServerPort(int serverPort) | |
| setStartTime | back to summary |
|---|---|
| public void setStartTime(long startTime)
Deprecated This setter will be removed in Tomcat 11
| |
| setStartTimeNanos | back to summary |
|---|---|
| public void setStartTimeNanos(long startTimeNanos) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| updateCounters | back to summary |
|---|---|
| public void updateCounters() | |