public class WsHttpUpgradeHandler extends 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.
|
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(Endpoint ep,
EndpointConfig endpointConfig,
WsServerContainer wsc,
WsHandshakeRequest handshakeRequest,
List<Extension> negotiatedExtensionsPhase2,
String subProtocol,
Transformation transformation,
Map<String,String> pathParameters,
boolean secure) |
void |
setSocketWrapper(SocketWrapperBase<?> socketWrapper) |
void |
setSslSupport(SSLSupport sslSupport) |
AbstractEndpoint.Handler.SocketState |
upgradeDispatch(SocketEvent status) |
public void setSocketWrapper(SocketWrapperBase<?> socketWrapper)
setSocketWrapper
in interface InternalHttpUpgradeHandler
public void preInit(Endpoint ep, EndpointConfig endpointConfig, WsServerContainer wsc, WsHandshakeRequest handshakeRequest, List<Extension> negotiatedExtensionsPhase2, String subProtocol, Transformation transformation, Map<String,String> pathParameters, boolean secure)
public void init(WebConnection connection)
javax.servlet.http.HttpUpgradeHandler
HttpServletRequest.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 HttpUpgradeHandler
connection
- The connection that has been upgradedpublic AbstractEndpoint.Handler.SocketState upgradeDispatch(SocketEvent status)
upgradeDispatch
in interface InternalHttpUpgradeHandler
public void pause()
pause
in interface InternalHttpUpgradeHandler
public void destroy()
javax.servlet.http.HttpUpgradeHandler
destroy
in interface HttpUpgradeHandler
public void setSslSupport(SSLSupport sslSupport)
setSslSupport
in interface InternalHttpUpgradeHandler
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.