public interface WebSocketEngine
ServerContainer and upgrades HTTP handshake requests.| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | WebSocketEngine.UpgradeInfoUpgrade info that includes status for HTTP request upgrading and connection creation details. | 
| static class  | WebSocketEngine.UpgradeStatusUpgrade Status for HTTP request upgrading. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | register(java.lang.Class<?> endpointClass,
        java.lang.String contextPath)Register endpoint class. | 
| void | register(ServerEndpointConfig serverConfig,
        java.lang.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(java.lang.Class<?> endpointClass,
              java.lang.String contextPath)
       throws DeploymentException
endpointClass - endpoint class to be registered.contextPath - context path of the registered endpoint.DeploymentException - when the endpoint is invalid.void register(ServerEndpointConfig serverConfig, java.lang.String contextPath) throws DeploymentException
ServerEndpointConfig.serverConfig - server endpoint to be registered.contextPath - context path of the registered endpoint.DeploymentException - when the endpoint is invalid.Copyright © 2012–2020 Oracle Corporation. All rights reserved.