public final class ContainerDefaultConfigurator
extends javax.websocket.server.ServerEndpointConfig.Configurator
behavior of {@link javax.websocket.server.ServerEndpointConfig.Configurator}
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOG |
private static java.lang.String |
NO_SUBPROTOCOL |
Constructor and Description |
---|
ContainerDefaultConfigurator()
Default Constructor required, as
javax.websocket.server.ServerEndpointConfig$Configurator.fetchContainerDefaultConfigurator()
will be the one that instantiates this class in most cases.
|
Modifier and Type | Method and 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) |
private static final Logger LOG
private static final java.lang.String NO_SUBPROTOCOL
public ContainerDefaultConfigurator()
public boolean checkOrigin(java.lang.String originHeaderValue)
checkOrigin
in class javax.websocket.server.ServerEndpointConfig.Configurator
public <T> T getEndpointInstance(java.lang.Class<T> endpointClass) throws java.lang.InstantiationException
getEndpointInstance
in class javax.websocket.server.ServerEndpointConfig.Configurator
java.lang.InstantiationException
public java.util.List<javax.websocket.Extension> getNegotiatedExtensions(java.util.List<javax.websocket.Extension> installed, java.util.List<javax.websocket.Extension> requested)
getNegotiatedExtensions
in class javax.websocket.server.ServerEndpointConfig.Configurator
public java.lang.String getNegotiatedSubprotocol(java.util.List<java.lang.String> supported, java.util.List<java.lang.String> requested)
getNegotiatedSubprotocol
in class javax.websocket.server.ServerEndpointConfig.Configurator
public void modifyHandshake(javax.websocket.server.ServerEndpointConfig sec, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)
modifyHandshake
in class javax.websocket.server.ServerEndpointConfig.Configurator