RequestUpgradeStrategy implementations that build
on the standard WebSocket API for Java (JSR-356).
| Modifier and Type | Field and Description |
|---|---|
| private volatile List | |
| protected final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ServerContainer | |
| protected final HttpServletRequest | |
| protected final HttpServletResponse | |
| protected List | |
| public List | getSupportedExtensions(ServerHttpRequest request)
Implements org. Return the WebSocket protocol extensions supported by the underlying WebSocket server. |
| public void | upgrade(ServerHttpRequest
the current request request, ServerHttpResponse the current response response, String the selected sub-protocol, if any selectedProtocol, List<WebSocketExtension> the selected WebSocket protocol extensions selectedExtensions, Principal the user to associate with the WebSocket session user, WebSocketHandler the handler for WebSocket messages wsHandler, Map<String, Object> handshake request specific attributes to be set on the WebSocket
session via attrs)org. and
thus made available to the org.Implements org. Perform runtime specific steps to complete the upgrade. |
| protected abstract void | upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint)
|
| extensions | back to summary |
|---|---|
| private volatile List<WebSocketExtension> extensions
| |
| logger | back to summary |
|---|---|
| protected final Log logger | |
| AbstractStandardUpgradeStrategy | back to summary |
|---|---|
| public AbstractStandardUpgradeStrategy() | |
| getContainer | back to summary |
|---|---|
| protected ServerContainer getContainer(HttpServletRequest request) | |
| getHttpServletRequest | back to summary |
|---|---|
| protected final HttpServletRequest getHttpServletRequest(ServerHttpRequest request) | |
| getHttpServletResponse | back to summary |
|---|---|
| protected final HttpServletResponse getHttpServletResponse(ServerHttpResponse response) | |
| getInstalledExtensions | back to summary |
|---|---|
| protected List | |
| getSupportedExtensions | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the WebSocket protocol extensions supported by the underlying WebSocket server.
| |
| upgrade | back to summary |
|---|---|
| public void upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler wsHandler, Map<String, Object> attrs) throws HandshakeFailureException Implements org. Doc from org. Perform runtime specific steps to complete the upgrade. Invoked after successful negotiation of the handshake request.
| |
| upgradeInternal | back to summary |
|---|---|
| protected abstract void upgradeInternal(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<Extension> selectedExtensions, Endpoint endpoint) throws HandshakeFailureException | |