public class WsHttpUpgradeHandler extends java.lang.Object implements InternalHttpUpgradeHandler
| Constructor and Description |
|---|
WsHttpUpgradeHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
This method is called after the upgraded connection has been closed.
|
UpgradeInfo |
getUpgradeInfo() |
void |
init(WebConnection connection)
This method is called once the request/response pair where
HttpServletRequest.upgrade(Class) is called
has completed processing and is the point where control of the connection passes from the container to the
HttpUpgradeHandler. |
void |
pause() |
void |
preInit(ServerEndpointConfig serverEndpointConfig,
WsServerContainer wsc,
WsHandshakeRequest handshakeRequest,
java.util.List<Extension> negotiatedExtensionsPhase2,
java.lang.String subProtocol,
Transformation transformation,
java.util.Map<java.lang.String,java.lang.String> pathParameters,
boolean secure) |
void |
setSocketWrapper(SocketWrapperBase<?> socketWrapper) |
void |
setSslSupport(SSLSupport sslSupport) |
void |
timeoutAsync(long now) |
AbstractEndpoint.Handler.SocketState |
upgradeDispatch(SocketEvent status) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasAsyncIOpublic void setSocketWrapper(SocketWrapperBase<?> socketWrapper)
setSocketWrapper in interface InternalHttpUpgradeHandlerpublic void preInit(ServerEndpointConfig serverEndpointConfig, WsServerContainer wsc, WsHandshakeRequest handshakeRequest, java.util.List<Extension> negotiatedExtensionsPhase2, java.lang.String subProtocol, Transformation transformation, java.util.Map<java.lang.String,java.lang.String> pathParameters, boolean secure)
public void init(WebConnection connection)
javax.servlet.http.HttpUpgradeHandlerHttpServletRequest.upgrade(Class) is called
has completed processing and is the point where control of the connection passes from the container to the
HttpUpgradeHandler.init in interface HttpUpgradeHandlerconnection - The connection that has been upgradedpublic UpgradeInfo getUpgradeInfo()
getUpgradeInfo in interface InternalHttpUpgradeHandlerpublic AbstractEndpoint.Handler.SocketState upgradeDispatch(SocketEvent status)
upgradeDispatch in interface InternalHttpUpgradeHandlerpublic void timeoutAsync(long now)
timeoutAsync in interface InternalHttpUpgradeHandlerpublic void pause()
pause in interface InternalHttpUpgradeHandlerpublic void destroy()
javax.servlet.http.HttpUpgradeHandlerdestroy in interface HttpUpgradeHandlerpublic void setSslSupport(SSLSupport sslSupport)
setSslSupport in interface InternalHttpUpgradeHandlerCopyright © 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.