public interface WebSocketEngine
ServerContainer
and upgrades HTTP handshake requests.Modifier and Type | Interface and Description |
---|---|
static interface |
WebSocketEngine.UpgradeInfo
Upgrade info that includes status for HTTP request upgrading and connection creation details.
|
static class |
WebSocketEngine.UpgradeStatus
Upgrade Status for HTTP request upgrading.
|
Modifier and Type | Method and Description |
---|---|
void |
register(Class<?> endpointClass,
String contextPath)
Register endpoint class.
|
void |
register(javax.websocket.server.ServerEndpointConfig serverConfig,
String contextPath)
Register
ServerEndpointConfig . |
WebSocketEngine.UpgradeInfo |
upgrade(UpgradeRequest request,
UpgradeResponse response)
A transport calls this method to upgrade a HTTP request.
|
WebSocketEngine.UpgradeInfo upgrade(UpgradeRequest request, UpgradeResponse response)
request
- request to be upgraded.response
- response to the upgrade request.void register(Class<?> endpointClass, String contextPath) throws javax.websocket.DeploymentException
endpointClass
- endpoint class to be registered.contextPath
- context path of the registered endpoint.javax.websocket.DeploymentException
- when the endpoint is invalid.void register(javax.websocket.server.ServerEndpointConfig serverConfig, String contextPath) throws javax.websocket.DeploymentException
ServerEndpointConfig
.serverConfig
- server endpoint to be registered.contextPath
- context path of the registered endpoint.javax.websocket.DeploymentException
- when the endpoint is invalid.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.