Class ContainerDefaultConfigurator
java.lang.Object
javax.websocket.server.ServerEndpointConfig.Configurator
org.eclipse.jetty.websocket.javax.server.config.ContainerDefaultConfigurator
public final class ContainerDefaultConfigurator
extends javax.websocket.server.ServerEndpointConfig.Configurator
The "Container Default Configurator" per the JSR-356 spec.
-
Constructor Summary
ConstructorDescriptionDefault Constructor required, as javax.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<javax.websocket.Extension>
getNegotiatedExtensions
(List<javax.websocket.Extension> installed, List<javax.websocket.Extension> requested) getNegotiatedSubprotocol
(List<String> supported, List<String> requested) void
modifyHandshake
(javax.websocket.server.ServerEndpointConfig sec, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)
-
Constructor Details
-
ContainerDefaultConfigurator
public ContainerDefaultConfigurator()Default Constructor required, as javax.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator() will be the one that instantiates this class in most cases.
-
-
Method Details
-
checkOrigin
- Overrides:
checkOrigin
in classjavax.websocket.server.ServerEndpointConfig.Configurator
-
getEndpointInstance
- Overrides:
getEndpointInstance
in classjavax.websocket.server.ServerEndpointConfig.Configurator
- Throws:
InstantiationException
-
getNegotiatedExtensions
public List<javax.websocket.Extension> getNegotiatedExtensions(List<javax.websocket.Extension> installed, List<javax.websocket.Extension> requested) - Overrides:
getNegotiatedExtensions
in classjavax.websocket.server.ServerEndpointConfig.Configurator
-
getNegotiatedSubprotocol
- Overrides:
getNegotiatedSubprotocol
in classjavax.websocket.server.ServerEndpointConfig.Configurator
-
modifyHandshake
public void modifyHandshake(javax.websocket.server.ServerEndpointConfig sec, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response) - Overrides:
modifyHandshake
in classjavax.websocket.server.ServerEndpointConfig.Configurator
-