Package io.undertow.websockets.jsr
Class DefaultContainerConfigurator
- java.lang.Object
-
- javax.websocket.server.ServerEndpointConfig.Configurator
-
- io.undertow.websockets.jsr.DefaultContainerConfigurator
-
public class DefaultContainerConfigurator extends javax.websocket.server.ServerEndpointConfig.ConfiguratorServer default container configurator.This API is stupid, because it has no way to attach deployment specific context.
- Author:
- Stuart Douglas
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultContainerConfiguratorINSTANCE
-
Constructor Summary
Constructors Constructor Description DefaultContainerConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckOrigin(String originHeaderValue)<T> TgetEndpointInstance(Class<T> endpointClass)List<javax.websocket.Extension>getNegotiatedExtensions(List<javax.websocket.Extension> installed, List<javax.websocket.Extension> requested)StringgetNegotiatedSubprotocol(List<String> supported, List<String> requested)voidmodifyHandshake(javax.websocket.server.ServerEndpointConfig sec, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultContainerConfigurator INSTANCE
-
-
Method Detail
-
getNegotiatedSubprotocol
public String getNegotiatedSubprotocol(List<String> supported, List<String> requested)
- Overrides:
getNegotiatedSubprotocolin classjavax.websocket.server.ServerEndpointConfig.Configurator
-
getNegotiatedExtensions
public List<javax.websocket.Extension> getNegotiatedExtensions(List<javax.websocket.Extension> installed, List<javax.websocket.Extension> requested)
- Overrides:
getNegotiatedExtensionsin classjavax.websocket.server.ServerEndpointConfig.Configurator
-
checkOrigin
public boolean checkOrigin(String originHeaderValue)
- Overrides:
checkOriginin classjavax.websocket.server.ServerEndpointConfig.Configurator
-
modifyHandshake
public void modifyHandshake(javax.websocket.server.ServerEndpointConfig sec, javax.websocket.server.HandshakeRequest request, javax.websocket.HandshakeResponse response)- Overrides:
modifyHandshakein classjavax.websocket.server.ServerEndpointConfig.Configurator
-
getEndpointInstance
public <T> T getEndpointInstance(Class<T> endpointClass) throws InstantiationException
- Overrides:
getEndpointInstancein classjavax.websocket.server.ServerEndpointConfig.Configurator- Throws:
InstantiationException
-
-