public interface Processor
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getLeftoverInput()
Allows retrieving additional input during the upgrade process
|
Request |
getRequest() |
UpgradeToken |
getUpgradeToken() |
boolean |
isAsync() |
boolean |
isUpgrade() |
void |
pause()
Informs the processor that the underlying I/O layer has stopped accepting
new connections.
|
AbstractEndpoint.Handler.SocketState |
process(SocketWrapperBase<?> socketWrapper,
SocketEvent status)
Process a connection.
|
void |
recycle()
Recycle the processor, ready for the next request which may be on the
same connection or a different connection.
|
void |
setSslSupport(SSLSupport sslSupport)
Set the SSL information for this HTTP connection.
|
void |
timeoutAsync(long now)
Check this processor to see if the async timeout has expired and process
a timeout if that is that case.
|
AbstractEndpoint.Handler.SocketState process(SocketWrapperBase<?> socketWrapper, SocketEvent status) throws IOException
socketWrapper
- The connection to processstatus
- The status of the connection that triggered this additional
processingIOException
- If an I/O error occurs during the processing of the
requestUpgradeToken getUpgradeToken()
boolean isUpgrade()
boolean isAsync()
void timeoutAsync(long now)
now
- The time (as returned by System.currentTimeMillis()
to
use as the current time to determine whether the async timeout
has expired. If negative, the timeout will always be treated
as if it has expired.Request getRequest()
void recycle()
void setSslSupport(SSLSupport sslSupport)
sslSupport
- The SSL support object to use for this connectionByteBuffer getLeftoverInput()
void pause()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.