connection manager that connects
to the server via WebSocketContainer and handles the session with an
Endpoint.
AnnotatedEndpointConnectionManager
| Modifier and Type | Field and Description |
|---|---|
| private final ClientEndpointConfig. | |
| private final Endpoint | |
| private final BeanCreatingHandlerProvider | |
| private volatile Session | |
| private TaskExecutor | |
| private WebSocketContainer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | EndpointConnectionManager(Class<? extends Endpoint> endpointClass, String uriTemplate, Object... uriVars)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | closeConnection()
Implements abstract org. Subclasses implement this to close the connection. |
| public TaskExecutor | |
| public WebSocketContainer | |
| public boolean | isConnected()
Implements abstract org. Whether the connection is open/ |
| protected void | openConnection()
Implements abstract org. Subclasses implement this to actually establish the connection. |
| 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 void | |
| public void |
| configBuilder | back to summary |
|---|---|
| private final ClientEndpointConfig. | |
| endpoint | back to summary |
|---|---|
| private final Endpoint endpoint
| |
| endpointProvider | back to summary |
|---|---|
| private final BeanCreatingHandlerProvider<Endpoint> endpointProvider
| |
| session | back to summary |
|---|---|
| private volatile Session session
| |
| taskExecutor | back to summary |
|---|---|
| private TaskExecutor taskExecutor | |
| webSocketContainer | back to summary |
|---|---|
| private WebSocketContainer webSocketContainer | |
| EndpointConnectionManager | back to summary |
|---|---|
| public EndpointConnectionManager(Endpoint endpoint, String uriTemplate, Object... uriVariables) | |
| EndpointConnectionManager | back to summary |
|---|---|
| public EndpointConnectionManager(Class<? extends Endpoint> endpointClass, String uriTemplate, Object... uriVars) | |
| closeConnection | back to summary |
|---|---|
| protected void closeConnection() throws Exception Implements abstract org. Doc from org. Subclasses implement this to close the connection.
| |
| getTaskExecutor | back to summary |
|---|---|
| public TaskExecutor getTaskExecutor() Return the configured | |
| getWebSocketContainer | back to summary |
|---|---|
| public WebSocketContainer getWebSocketContainer() | |
| isConnected | back to summary |
|---|---|
| public boolean isConnected() Implements abstract org. Doc from org. Whether the connection is open/
| |
| openConnection | back to summary |
|---|---|
| protected void openConnection() Implements abstract org. Doc from org. Subclasses implement this to actually establish the connection.
| |
| 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
| |
| setConfigurator | back to summary |
|---|---|
| public void setConfigurator(ClientEndpointConfig. | |
| 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(Extension... extensions) | |
| setSupportedProtocols | back to summary |
|---|---|
| public void setSupportedProtocols(String... protocols) | |
| setTaskExecutor | back to summary |
|---|---|
| public void setTaskExecutor(TaskExecutor taskExecutor) Set a | |
| setWebSocketContainer | back to summary |
|---|---|
| public void setWebSocketContainer(WebSocketContainer webSocketContainer) | |