public class DefaultContainerConfigurator
extends jakarta.websocket.server.ServerEndpointConfig.Configurator
This API is stupid, because it has no way to attach deployment specific context.
| Modifier and Type | Field and Description |
|---|---|
static DefaultContainerConfigurator |
INSTANCE |
| Constructor and Description |
|---|
DefaultContainerConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOrigin(String originHeaderValue) |
<T> T |
getEndpointInstance(Class<T> endpointClass) |
List<jakarta.websocket.Extension> |
getNegotiatedExtensions(List<jakarta.websocket.Extension> installed,
List<jakarta.websocket.Extension> requested) |
String |
getNegotiatedSubprotocol(List<String> supported,
List<String> requested) |
void |
modifyHandshake(jakarta.websocket.server.ServerEndpointConfig sec,
jakarta.websocket.server.HandshakeRequest request,
jakarta.websocket.HandshakeResponse response) |
public static final DefaultContainerConfigurator INSTANCE
public String getNegotiatedSubprotocol(List<String> supported, List<String> requested)
getNegotiatedSubprotocol in class jakarta.websocket.server.ServerEndpointConfig.Configuratorpublic List<jakarta.websocket.Extension> getNegotiatedExtensions(List<jakarta.websocket.Extension> installed, List<jakarta.websocket.Extension> requested)
getNegotiatedExtensions in class jakarta.websocket.server.ServerEndpointConfig.Configuratorpublic boolean checkOrigin(String originHeaderValue)
checkOrigin in class jakarta.websocket.server.ServerEndpointConfig.Configuratorpublic void modifyHandshake(jakarta.websocket.server.ServerEndpointConfig sec,
jakarta.websocket.server.HandshakeRequest request,
jakarta.websocket.HandshakeResponse response)
modifyHandshake in class jakarta.websocket.server.ServerEndpointConfig.Configuratorpublic <T> T getEndpointInstance(Class<T> endpointClass) throws InstantiationException
getEndpointInstance in class jakarta.websocket.server.ServerEndpointConfig.ConfiguratorInstantiationExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.