jakarta.websocket.server.ServerEndpointConfig for use in
Spring-based applications. A ServerEndpointRegistration bean is detected by
ServerEndpointExporter and registered with a Jakarta WebSocket runtime at startup.
Class constructors accept a singleton jakarta. instance
or an Endpoint specified by type Class. When specified by type, the endpoint
will be instantiated and initialized through the Spring ApplicationContext before
each client WebSocket connection.
This class also extends
jakarta. to make it easier
to override methods for customizing the handshake process.
ServerEndpointExporter
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private List | |
| private final Endpoint | |
| private final BeanCreatingHandlerProvider | |
| private List | |
| private final String | |
| private List | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | ServerEndpointRegistration(String
the endpoint path path, Endpoint the endpoint instance endpoint)Create a new |
| public | ServerEndpointRegistration(String
the endpoint path path, Class<? extends Endpoint> the endpoint class endpointClass)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public ServerEndpointConfig. | |
| public List | |
| public List | |
| public Endpoint | |
| public Class | |
| public final <T> T | |
| public List | |
| public String | getPath()
Implements jakarta. Returns the path at which this WebSocket server endpoint has been registered. |
| public List | |
| public Map | |
| public void | modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response)
Overrides jakarta.
|
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. Callback that supplies the owning factory to a bean instance. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| decoders | back to summary |
|---|---|
| private List<Class<? extends Decoder>> decoders | |
| encoders | back to summary |
|---|---|
| private List<Class<? extends Encoder>> encoders | |
| endpoint | back to summary |
|---|---|
| private final Endpoint endpoint
| |
| endpointProvider | back to summary |
|---|---|
| private final BeanCreatingHandlerProvider<Endpoint> endpointProvider
| |
| extensions | back to summary |
|---|---|
| private List<Extension> extensions | |
| path | back to summary |
|---|---|
| private final String path | |
| subprotocols | back to summary |
|---|---|
| private List<String> subprotocols | |
| userProperties | back to summary |
|---|---|
| private final Map<String, Object> userProperties | |
| ServerEndpointRegistration | back to summary |
|---|---|
| public ServerEndpointRegistration(String path, Endpoint endpoint) Create a new | |
| ServerEndpointRegistration | back to summary |
|---|---|
| public ServerEndpointRegistration(String path, Class<? extends Endpoint> endpointClass) Create a new | |
| getConfigurator | back to summary |
|---|---|
| public ServerEndpointConfig. Implements jakarta.
| |
| getDecoders | back to summary |
|---|---|
| public List Implements jakarta.
| |
| getEncoders | back to summary |
|---|---|
| public List Implements jakarta.
| |
| getEndpoint | back to summary |
|---|---|
| public Endpoint getEndpoint() | |
| getEndpointClass | back to summary |
|---|---|
| public Class Implements jakarta.
| |
| getEndpointInstance | back to summary |
|---|---|
| public final <T> T getEndpointInstance(Class<T> clazz) throws InstantiationException Overrides jakarta.
| |
| getExtensions | back to summary |
|---|---|
| public List Implements jakarta.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Implements jakarta. Doc from jakarta. Returns the path at which this WebSocket server endpoint has been registered. It may be a path or a level 0 URI template. | |
| getSubprotocols | back to summary |
|---|---|
| public List Implements jakarta.
| |
| getUserProperties | back to summary |
|---|---|
| public Map Implements jakarta.
| |
| modifyHandshake | back to summary |
|---|---|
| public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) Overrides jakarta.
| |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Implements org. Doc from org. Callback that supplies the owning factory to a bean instance. Invoked after the population of normal bean properties
but before an initialization callback such as
| |
| setDecoders | back to summary |
|---|---|
| public void setDecoders(List<Class<? extends Decoder>> decoders) | |
| setEncoders | back to summary |
|---|---|
| public void setEncoders(List<Class<? extends Encoder>> encoders) | |
| setExtensions | back to summary |
|---|---|
| public void setExtensions(List<Extension> extensions) | |
| setSubprotocols | back to summary |
|---|---|
| public void setSubprotocols(List<String> subprotocols) | |
| setUserProperties | back to summary |
|---|---|
| public void setUserProperties(Map<String, Object> userProperties) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |