public class BasicServerEndpointConfigurator extends ServerEndpointConfig.Configurator
Modifier and Type | Field and Description |
---|---|
static ServerEndpointConfig.Configurator |
INSTANCE |
Constructor and Description |
---|
BasicServerEndpointConfigurator() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkOrigin(String originHeaderValue) |
<T> T |
getEndpointInstance(Class<T> endpointClass) |
List<Extension> |
getNegotiatedExtensions(List<Extension> installed,
List<Extension> requested) |
String |
getNegotiatedSubprotocol(List<String> supported,
List<String> requested) |
void |
modifyHandshake(ServerEndpointConfig sec,
HandshakeRequest request,
HandshakeResponse response) |
public static final ServerEndpointConfig.Configurator INSTANCE
public boolean checkOrigin(String originHeaderValue)
checkOrigin
in class ServerEndpointConfig.Configurator
public <T> T getEndpointInstance(Class<T> endpointClass) throws InstantiationException
getEndpointInstance
in class ServerEndpointConfig.Configurator
InstantiationException
public List<Extension> getNegotiatedExtensions(List<Extension> installed, List<Extension> requested)
getNegotiatedExtensions
in class ServerEndpointConfig.Configurator
public String getNegotiatedSubprotocol(List<String> supported, List<String> requested)
getNegotiatedSubprotocol
in class ServerEndpointConfig.Configurator
public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response)
modifyHandshake
in class ServerEndpointConfig.Configurator
Copyright © 1995-2015 Webtide. All Rights Reserved.