Class ContainerDefaultConfigurator
- java.lang.Object
-
- javax.websocket.server.ServerEndpointConfig.Configurator
-
- org.eclipse.jetty.websocket.jsr356.server.ContainerDefaultConfigurator
-
public final class ContainerDefaultConfigurator extends javax.websocket.server.ServerEndpointConfig.Configurator
The "Container Default Configurator" per the JSR-356 spec.- See Also:
behavior of
-
-
Constructor Summary
Constructors Constructor Description ContainerDefaultConfigurator()
Default Constructor required, as javax.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator() will be the one that instantiates this class in most cases.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkOrigin(java.lang.String originHeaderValue)
<T> T
getEndpointInstance(java.lang.Class<T> endpointClass)
java.util.List<javax.websocket.Extension>
getNegotiatedExtensions(java.util.List<javax.websocket.Extension> installed, java.util.List<javax.websocket.Extension> requested)
java.lang.String
getNegotiatedSubprotocol(java.util.List<java.lang.String> supported, java.util.List<java.lang.String> requested)
void
modifyHandshake(javax.websocket.server.ServerEndpointConfig sec, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)
-
-
-
Method Detail
-
checkOrigin
public boolean checkOrigin(java.lang.String originHeaderValue)
- Overrides:
checkOrigin
in classjavax.websocket.server.ServerEndpointConfig.Configurator
-
getEndpointInstance
public <T> T getEndpointInstance(java.lang.Class<T> endpointClass) throws java.lang.InstantiationException
- Overrides:
getEndpointInstance
in classjavax.websocket.server.ServerEndpointConfig.Configurator
- Throws:
java.lang.InstantiationException
-
getNegotiatedExtensions
public java.util.List<javax.websocket.Extension> getNegotiatedExtensions(java.util.List<javax.websocket.Extension> installed, java.util.List<javax.websocket.Extension> requested)
- Overrides:
getNegotiatedExtensions
in classjavax.websocket.server.ServerEndpointConfig.Configurator
-
getNegotiatedSubprotocol
public java.lang.String getNegotiatedSubprotocol(java.util.List<java.lang.String> supported, java.util.List<java.lang.String> requested)
- 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
-
-