Class WsHttpUpgradeHandler
java.lang.Object
org.apache.tomcat.websocket.server.WsHttpUpgradeHandler
- All Implemented Interfaces:
- HttpUpgradeHandler,- InternalHttpUpgradeHandler
Servlet 3.1 HTTP upgrade handler for WebSocket connections.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddestroy()This method is called after the upgraded connection has been closed.voidinit(WebConnection connection) This method is called once the request/response pair whereHttpServletRequest.upgrade(Class)is called has completed processing and is the point where control of the connection passes from the container to theHttpUpgradeHandler.voidpause()voidpreInit(ServerEndpointConfig serverEndpointConfig, WsServerContainer wsc, WsHandshakeRequest handshakeRequest, List<Extension> negotiatedExtensionsPhase2, String subProtocol, Transformation transformation, Map<String, String> pathParameters, boolean secure) voidsetSocketWrapper(SocketWrapperBase<?> socketWrapper) voidsetSslSupport(SSLSupport sslSupport) voidtimeoutAsync(long now) upgradeDispatch(SocketEvent status) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.coyote.http11.upgrade.InternalHttpUpgradeHandlerhasAsyncIO
- 
Constructor Details- 
WsHttpUpgradeHandlerpublic WsHttpUpgradeHandler()
 
- 
- 
Method Details- 
setSocketWrapper- Specified by:
- setSocketWrapperin interface- InternalHttpUpgradeHandler
 
- 
preInitpublic void preInit(ServerEndpointConfig serverEndpointConfig, WsServerContainer wsc, WsHandshakeRequest handshakeRequest, List<Extension> negotiatedExtensionsPhase2, String subProtocol, Transformation transformation, Map<String, String> pathParameters, boolean secure) 
- 
initDescription copied from interface:jakarta.servlet.http.HttpUpgradeHandlerThis method is called once the request/response pair whereHttpServletRequest.upgrade(Class)is called has completed processing and is the point where control of the connection passes from the container to theHttpUpgradeHandler.- Specified by:
- initin interface- HttpUpgradeHandler
- Parameters:
- connection- The connection that has been upgraded
 
- 
getUpgradeInfo- Specified by:
- getUpgradeInfoin interface- InternalHttpUpgradeHandler
 
- 
upgradeDispatch- Specified by:
- upgradeDispatchin interface- InternalHttpUpgradeHandler
 
- 
timeoutAsyncpublic void timeoutAsync(long now) - Specified by:
- timeoutAsyncin interface- InternalHttpUpgradeHandler
 
- 
pausepublic void pause()- Specified by:
- pausein interface- InternalHttpUpgradeHandler
 
- 
destroypublic void destroy()Description copied from interface:jakarta.servlet.http.HttpUpgradeHandlerThis method is called after the upgraded connection has been closed.- Specified by:
- destroyin interface- HttpUpgradeHandler
 
- 
setSslSupport- Specified by:
- setSslSupportin interface- InternalHttpUpgradeHandler
 
 
-