Class ContainerDefaultConfigurator
java.lang.Object
jakarta.websocket.server.ServerEndpointConfig.Configurator
org.eclipse.jetty.ee10.websocket.jakarta.server.config.ContainerDefaultConfigurator
public final class ContainerDefaultConfigurator
extends jakarta.websocket.server.ServerEndpointConfig.Configurator
The "Container Default Configurator" per the JSR-356 spec.
-
Constructor Summary
ConstructorDescriptionDefault Constructor required, as jakarta.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator() will be the one that instantiates this class in most cases. -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkOrigin
(String originHeaderValue) <T> T
getEndpointInstance
(Class<T> endpointClass) List<jakarta.websocket.Extension>
getNegotiatedExtensions
(List<jakarta.websocket.Extension> installed, List<jakarta.websocket.Extension> requested) getNegotiatedSubprotocol
(List<String> supported, List<String> requested) void
modifyHandshake
(jakarta.websocket.server.ServerEndpointConfig sec, jakarta.websocket.server.HandshakeRequest request, jakarta.websocket.HandshakeResponse response) Methods inherited from class jakarta.websocket.server.ServerEndpointConfig.Configurator
getContainerDefaultConfigurator
-
Constructor Details
-
ContainerDefaultConfigurator
public ContainerDefaultConfigurator()Default Constructor required, as jakarta.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator() will be the one that instantiates this class in most cases.
-
-
Method Details
-
checkOrigin
- Overrides:
checkOrigin
in classjakarta.websocket.server.ServerEndpointConfig.Configurator
-
getEndpointInstance
- Overrides:
getEndpointInstance
in classjakarta.websocket.server.ServerEndpointConfig.Configurator
- Throws:
InstantiationException
-
getNegotiatedExtensions
public List<jakarta.websocket.Extension> getNegotiatedExtensions(List<jakarta.websocket.Extension> installed, List<jakarta.websocket.Extension> requested) - Overrides:
getNegotiatedExtensions
in classjakarta.websocket.server.ServerEndpointConfig.Configurator
-
getNegotiatedSubprotocol
- Overrides:
getNegotiatedSubprotocol
in classjakarta.websocket.server.ServerEndpointConfig.Configurator
-
modifyHandshake
public void modifyHandshake(jakarta.websocket.server.ServerEndpointConfig sec, jakarta.websocket.server.HandshakeRequest request, jakarta.websocket.HandshakeResponse response) - Overrides:
modifyHandshake
in classjakarta.websocket.server.ServerEndpointConfig.Configurator
-