public class CmsWebSocketConfigurator
extends javax.websocket.server.ServerEndpointConfig.Configurator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WEBSOCKET_SUBJECT |
Constructor and Description |
---|
CmsWebSocketConfigurator() |
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) |
protected void |
rejectResponse(javax.websocket.HandshakeResponse response,
java.lang.Exception e)
Behaviour when the web socket could not be authenticated.
|
public static final java.lang.String WEBSOCKET_SUBJECT
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
protected void rejectResponse(javax.websocket.HandshakeResponse response, java.lang.Exception e)
IllegalStateException
by default.e
- can be nullCopyright © 2007–2020. All rights reserved.