RequestUpgradeStrategy for Jetty 11.
| Modifier and Type | Field and Description |
|---|---|
| private static final String[] | |
| private Consumer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addWebSocketConfigurer(Consumer<Configurable> webSocketConfigurer)
Add a callback to configure WebSocket server parameters on
|
| public List | getSupportedExtensions(ServerHttpRequest request)
Implements org. Return the WebSocket protocol extensions supported by the underlying WebSocket server. |
| public String[] | getSupportedVersions()
Implements org. Return the supported WebSocket protocol versions. |
| public void | setServletContext(ServletContext
the ServletContext object to be used by this object servletContext)Implements org. Set the Invoked after population of normal bean properties but before an init
callback like InitializingBean's |
| 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 handler, Map<String, Object> handshake request specific attributes to be set on the WebSocket
session via attributes)org. and
thus made available to the org.Implements org. Perform runtime specific steps to complete the upgrade. |
| SUPPORTED_VERSIONS | back to summary |
|---|---|
| private static final String[] SUPPORTED_VERSIONS | |
| webSocketConfigurer | back to summary |
|---|---|
| private Consumer<Configurable> webSocketConfigurer
| |
| JettyRequestUpgradeStrategy | back to summary |
|---|---|
| public JettyRequestUpgradeStrategy() | |
| addWebSocketConfigurer | back to summary |
|---|---|
| public void addWebSocketConfigurer(Consumer<Configurable> webSocketConfigurer) Add a callback to configure WebSocket server parameters on
| |
| getSupportedExtensions | back to summary |
|---|---|
| public List Implements org. Doc from org. Return the WebSocket protocol extensions supported by the underlying WebSocket server.
| |
| getSupportedVersions | back to summary |
|---|---|
| public String[] getSupportedVersions() Implements org. Doc from org. Return the supported WebSocket protocol versions.
| |
| setServletContext | back to summary |
|---|---|
| public void setServletContext(ServletContext servletContext) Implements org. Doc from org. Set the Invoked after population of normal bean properties but before an init
callback like InitializingBean's
| |
| upgrade | back to summary |
|---|---|
| public void upgrade(ServerHttpRequest request, ServerHttpResponse response, String selectedProtocol, List<WebSocketExtension> selectedExtensions, Principal user, WebSocketHandler handler, Map<String, Object> attributes) throws HandshakeFailureException Implements org. Doc from org. Perform runtime specific steps to complete the upgrade. Invoked after successful negotiation of the handshake request.
| |