| Modifier and Type | Field and Description |
|---|---|
| protected static final int | |
| private final UpgradeToken |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final AbstractEndpoint. | |
| public boolean | checkAsyncTimeoutGeneration()
Implements org. Check to see if the async generation (each cycle of async increments the generation of the AsyncStateMachine) is the same as the generation when the most recent async timeout was triggered. |
| public ByteBuffer | getLeftoverInput()
Implements org. Allows retrieving additional input during the upgrade process. |
| public final Request | |
| public UpgradeToken | |
| public final boolean | |
| public final boolean | |
| public final void | recycle()
Implements org. Recycle the processor, ready for the next request which may be on the same connection or a different connection. |
| public final AbstractEndpoint. | service(SocketWrapperBase<?>
The connection to process socketWrapper)Implements abstract org. Service a 'standard' HTTP request. |
| public void | timeoutAsync(long
The time (as returned by now)System#currentTimeMillis() to use as the current time to determine
whether the timeout has expired. If negative, the timeout will always be treated as ifq it has
expired.Implements org. Check this processor to see if the timeout has expired and process a timeout if that is that case. |
| INFINITE_TIMEOUT | back to summary |
|---|---|
| protected static final int INFINITE_TIMEOUT | |
| upgradeToken | back to summary |
|---|---|
| private final UpgradeToken upgradeToken | |
| UpgradeProcessorBase | back to summary |
|---|---|
| public UpgradeProcessorBase(UpgradeToken upgradeToken) | |
| asyncPostProcess | back to summary |
|---|---|
| public final AbstractEndpoint. Implements abstract org.
| |
| checkAsyncTimeoutGeneration | back to summary |
|---|---|
| public boolean checkAsyncTimeoutGeneration() Implements org. Doc from org. Check to see if the async generation (each cycle of async increments the generation of the AsyncStateMachine) is the same as the generation when the most recent async timeout was triggered. This is intended to be used to avoid unnecessary processing.
| |
| getLeftoverInput | back to summary |
|---|---|
| public ByteBuffer getLeftoverInput() Implements org. Doc from org. Allows retrieving additional input during the upgrade process.
| |
| getRequest | back to summary |
|---|---|
| public final Request getRequest() Implements org.
| |
| getUpgradeToken | back to summary |
|---|---|
| public UpgradeToken getUpgradeToken() Implements org. Doc from org. Generate an upgrade token.
| |
| isAsync | back to summary |
|---|---|
| public final boolean isAsync() Implements org.
| |
| isUpgrade | back to summary |
|---|---|
| public final boolean isUpgrade() Implements org.
| |
| recycle | back to summary |
|---|---|
| public final void recycle() Implements org. Doc from org. Recycle the processor, ready for the next request which may be on the same connection or a different connection.
| |
| service | back to summary |
|---|---|
| public final AbstractEndpoint. Implements abstract org. Doc from org. Service a 'standard' HTTP request. This method is called for both new requests and for requests that have
partially read the HTTP request line or HTTP headers. Once the headers have been fully read this method is not
called again until there is a new HTTP request to process. Note that the request type may change during
processing which may result in one or more calls to
| |
| timeoutAsync | back to summary |
|---|---|
| public void timeoutAsync(long now) Implements org. Doc from org. Check this processor to see if the timeout has expired and process a timeout if that is that case. Note The name of this method originated with the Servlet 3.0 asynchronous processing but evolved over time to represent a timeout that is triggered independently of the socket read/write timeouts.
| |