public class WsHttpUpgradeHandler extends java.lang.Object implements HttpUpgradeHandler
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 the upgrade
is initiated has completed processing and is the point where control of
the connection passes from the container to the
HttpUpgradeHandler . |
void |
preInit(Endpoint ep,
EndpointConfig endpointConfig,
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 preInit(Endpoint ep, EndpointConfig endpointConfig, 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)
HttpUpgradeHandler
HttpUpgradeHandler
.init
in interface HttpUpgradeHandler
connection
- The connection that has been upgradedpublic void destroy()
HttpUpgradeHandler
destroy
in interface HttpUpgradeHandler
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.