public class ServerEndpointRegistration extends java.lang.Object implements javax.websocket.server.ServerEndpointConfig, BeanFactoryAware
ServerEndpointConfig that also
contains the target Endpoint, provided either as a reference or
as a bean name.
ServerEndpointRegistration beans are detected by ServerEndpointExporter
and registered with a Java WebSocket runtime at startup.
ServerEndpointExporter| Constructor and Description |
|---|
ServerEndpointRegistration(java.lang.String path,
java.lang.Class<? extends javax.websocket.Endpoint> endpointClass)
Class constructor with the
javax.webscoket.Endpoint class. |
ServerEndpointRegistration(java.lang.String path,
javax.websocket.Endpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkOrigin(java.lang.String originHeaderValue) |
javax.websocket.server.ServerEndpointConfig.Configurator |
getConfigurator() |
java.util.List<java.lang.Class<? extends javax.websocket.Decoder>> |
getDecoders() |
java.util.List<java.lang.Class<? extends javax.websocket.Encoder>> |
getEncoders() |
javax.websocket.Endpoint |
getEndpoint() |
java.lang.Class<? extends javax.websocket.Endpoint> |
getEndpointClass() |
java.util.List<javax.websocket.Extension> |
getExtensions() |
protected java.util.List<javax.websocket.Extension> |
getNegotiatedExtensions(java.util.List<javax.websocket.Extension> installed,
java.util.List<javax.websocket.Extension> requested) |
protected java.lang.String |
getNegotiatedSubprotocol(java.util.List<java.lang.String> supported,
java.util.List<java.lang.String> requested) |
java.lang.String |
getPath() |
java.util.List<java.lang.String> |
getSubprotocols() |
java.util.Map<java.lang.String,java.lang.Object> |
getUserProperties() |
protected void |
modifyHandshake(javax.websocket.server.HandshakeRequest request,
javax.websocket.HandshakeResponse response) |
void |
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance.
|
void |
setDecoders(java.util.List<java.lang.Class<? extends javax.websocket.Decoder>> decoders) |
void |
setEncoders(java.util.List<java.lang.Class<? extends javax.websocket.Encoder>> encoders) |
void |
setExtensions(java.util.List<javax.websocket.Extension> extensions) |
void |
setSubprotocols(java.util.List<java.lang.String> subprotocols) |
void |
setUserProperties(java.util.Map<java.lang.String,java.lang.Object> userProperties) |
public ServerEndpointRegistration(java.lang.String path,
java.lang.Class<? extends javax.websocket.Endpoint> endpointClass)
javax.webscoket.Endpoint class.path - endpointClass - public ServerEndpointRegistration(java.lang.String path,
javax.websocket.Endpoint endpoint)
public java.lang.String getPath()
getPath in interface javax.websocket.server.ServerEndpointConfigpublic java.lang.Class<? extends javax.websocket.Endpoint> getEndpointClass()
getEndpointClass in interface javax.websocket.server.ServerEndpointConfigpublic javax.websocket.Endpoint getEndpoint()
public void setSubprotocols(java.util.List<java.lang.String> subprotocols)
public java.util.List<java.lang.String> getSubprotocols()
getSubprotocols in interface javax.websocket.server.ServerEndpointConfigpublic void setExtensions(java.util.List<javax.websocket.Extension> extensions)
public java.util.List<javax.websocket.Extension> getExtensions()
getExtensions in interface javax.websocket.server.ServerEndpointConfigpublic void setUserProperties(java.util.Map<java.lang.String,java.lang.Object> userProperties)
public java.util.Map<java.lang.String,java.lang.Object> getUserProperties()
getUserProperties in interface javax.websocket.EndpointConfigpublic void setEncoders(java.util.List<java.lang.Class<? extends javax.websocket.Encoder>> encoders)
public java.util.List<java.lang.Class<? extends javax.websocket.Encoder>> getEncoders()
getEncoders in interface javax.websocket.EndpointConfigpublic void setDecoders(java.util.List<java.lang.Class<? extends javax.websocket.Decoder>> decoders)
public java.util.List<java.lang.Class<? extends javax.websocket.Decoder>> getDecoders()
getDecoders in interface javax.websocket.EndpointConfigpublic javax.websocket.server.ServerEndpointConfig.Configurator getConfigurator()
getConfigurator in interface javax.websocket.server.ServerEndpointConfigpublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
BeanFactoryAwareInvoked after the population of normal bean properties
but before an initialization callback such as
InitializingBean.afterPropertiesSet() or a custom init-method.
setBeanFactory in interface BeanFactoryAwarebeanFactory - owning BeanFactory (never null).
The bean can immediately call methods on the factory.BeansException - in case of initialization errorsBeanInitializationExceptionprotected void modifyHandshake(javax.websocket.server.HandshakeRequest request,
javax.websocket.HandshakeResponse response)
protected boolean checkOrigin(java.lang.String originHeaderValue)
protected java.lang.String getNegotiatedSubprotocol(java.util.List<java.lang.String> supported,
java.util.List<java.lang.String> requested)
protected java.util.List<javax.websocket.Extension> getNegotiatedExtensions(java.util.List<javax.websocket.Extension> installed,
java.util.List<javax.websocket.Extension> requested)