public class UpgradeProcessorInternal extends UpgradeProcessorBase
INFINITE_TIMEOUT| Constructor and Description |
|---|
UpgradeProcessorInternal(SocketWrapperBase<?> wrapper,
UpgradeToken upgradeToken,
UpgradeGroupInfo upgradeGroupInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AbstractEndpoint.Handler.SocketState |
dispatch(SocketEvent status)
Process an in-progress request that is not longer in standard HTTP mode.
|
ServletInputStream |
getInputStream()
Provides access to the
ServletInputStream for reading data from the client. |
protected Log |
getLog() |
ServletOutputStream |
getOutputStream()
Provides access to the
ServletOutputStream for writing data to the client. |
boolean |
hasAsyncIO() |
void |
pause()
Informs the processor that the underlying I/O layer has stopped accepting new connections.
|
void |
setSslSupport(SSLSupport sslSupport)
Set the SSL information for this HTTP connection.
|
void |
timeoutAsync(long now)
Check this processor to see if the timeout has expired and process a timeout if that is that case.
|
asyncPostProcess, checkAsyncTimeoutGeneration, getLeftoverInput, getRequest, getUpgradeToken, isAsync, isUpgrade, recycle, serviceaddDispatch, clearDispatches, getIteratorAndClearDispatches, logAccess, processpublic UpgradeProcessorInternal(SocketWrapperBase<?> wrapper, UpgradeToken upgradeToken, UpgradeGroupInfo upgradeGroupInfo)
public AbstractEndpoint.Handler.SocketState dispatch(SocketEvent status)
AbstractProcessorLightdispatch in class AbstractProcessorLightstatus - The event to processpublic final void setSslSupport(SSLSupport sslSupport)
ProcessorsslSupport - The SSL support object to use for this connectionpublic void pause()
Processorprotected Log getLog()
getLog in class AbstractProcessorLightpublic void timeoutAsync(long now)
ProcessorNote: 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.
timeoutAsync in interface ProcessortimeoutAsync in class UpgradeProcessorBasenow - The time (as returned by 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.public boolean hasAsyncIO()
public void close()
throws java.lang.Exception
java.lang.Exceptionpublic ServletInputStream getInputStream() throws java.io.IOException
javax.servlet.http.WebConnectionServletInputStream for reading data from the client.java.io.IOException - If an I/O occurs while obtaining the streampublic ServletOutputStream getOutputStream() throws java.io.IOException
javax.servlet.http.WebConnectionServletOutputStream for writing data to the client.java.io.IOException - If an I/O occurs while obtaining the streamCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.