| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private volatile AsynchronousChannelGroup | |
| private final Object | |
| private int | |
| private static final byte[] | |
| private long | |
| private volatile long | |
| private final Map | |
| private final Object | |
| private static final byte[] | |
| private static final byte[] | |
| private InstanceManager | |
| private final Log | |
| private int | |
| private int | |
| private int | |
| private static final Random | |
| private static final byte[] | |
| private final Map | |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static ByteBuffer | |
| public void | |
| public Session | connectToServer(Object pojo, URI path)
Implements jakarta.
|
| public Session | connectToServer(Class<?> annotatedEndpointClass, URI path)
Implements jakarta.
|
| public Session | connectToServer(Class<? extends Endpoint>
An instance of this class will be created to handle responses from the server clazz, ClientEndpointConfig Used to configure the new connection clientEndpointConfiguration, URI The full URL of the WebSocket endpoint to connect to path)Implements jakarta. Creates a new connection to the WebSocket. |
| public Session | connectToServer(Endpoint
The endpoint instance that will handle responses from the server endpoint, ClientEndpointConfig Used to configure the new connection clientEndpointConfiguration, URI The full URL of the WebSocket endpoint to connect to path)Implements jakarta. Creates a new connection to the WebSocket. |
| private Session | connectToServerRecursive(ClientEndpointHolder clientEndpointHolder, ClientEndpointConfig clientEndpointConfiguration, URI path, Set<URI> redirectSet)
|
| private ClientEndpointConfig | |
| private static ByteBuffer | |
| private static ByteBuffer | |
| private static Map | createRequestHeaders(String host, int port, boolean secure, ClientEndpointConfig clientEndpointConfiguration)
|
| private SSLEngine | |
| public void | |
| private static List | |
| private static String | |
| private AsynchronousChannelGroup | |
| public long | getDefaultAsyncSendTimeout()
Implements jakarta. Get the default timeout for sending a message asynchronously. |
| public int | getDefaultMaxBinaryMessageBufferSize()
Implements jakarta. Get the default maximum buffer size for binary messages. |
| public long | getDefaultMaxSessionIdleTimeout()
Implements jakarta. Get the current default session idle timeout. |
| public int | getDefaultMaxTextMessageBufferSize()
Implements jakarta. Get the default maximum buffer size for text messages. |
| public Set | getInstalledExtensions()
Implements jakarta. Get the installed extensions. |
| protected InstanceManager | |
| pack-priv Set | |
| public int | getProcessPeriod()
Implements org. The default value is 10 which means session expirations are processed every 10 seconds. |
| private static boolean | |
| private void | |
| private int | |
| private Session | processAuthenticationChallenge(ClientEndpointHolder clientEndpointHolder, ClientEndpointConfig clientEndpointConfiguration, URI path, Set<URI> redirectSet, Map<String, Object> userProperties, ByteBuffer request, WsWebSocketContainer.
|
| private WsWebSocketContainer. | processResponse(ByteBuffer response, AsyncChannelWrapper channel, long timeout)
Process response, blocking until HTTP response has been fully received. |
| private static ByteBuffer | |
| private String | |
| protected void | |
| public void | setAsyncSendTimeout(long
The new default timeout in milliseconds. A non-positive value means an infinite timeout. timeout)Implements jakarta. Set the default timeout for sending a message asynchronously. |
| public void | setDefaultMaxBinaryMessageBufferSize(int
The new default maximum buffer size in bytes max)Implements jakarta. Set the default maximum buffer size for binary messages. |
| public void | setDefaultMaxSessionIdleTimeout(long
The new default session idle timeout in milliseconds. Zero or negative values indicate an infinite
timeout. timeout)Implements jakarta. Set the default session idle timeout. |
| public void | setDefaultMaxTextMessageBufferSize(int
The new default maximum buffer size in characters max)Implements jakarta. Set the default maximum buffer size for text messages. |
| protected void | |
| public void | setProcessPeriod(int period)
Implements org.
|
| protected void | |
| private static void |
| asynchronousChannelGroup | back to summary |
|---|---|
| private volatile AsynchronousChannelGroup asynchronousChannelGroup | |
| asynchronousChannelGroupLock | back to summary |
|---|---|
| private final Object asynchronousChannelGroupLock | |
| backgroundProcessCount | back to summary |
|---|---|
| private int backgroundProcessCount | |
| CRLF | back to summary |
|---|---|
| private static final byte[] CRLF | |
| defaultAsyncTimeout | back to summary |
|---|---|
| private long defaultAsyncTimeout | |
| defaultMaxSessionIdleTimeout | back to summary |
|---|---|
| private volatile long defaultMaxSessionIdleTimeout | |
| endpointSessionMap | back to summary |
|---|---|
| private final Map<Object, Set<WsSession>> endpointSessionMap | |
| endPointSessionMapLock | back to summary |
|---|---|
| private final Object endPointSessionMapLock | |
| GET_BYTES | back to summary |
|---|---|
| private static final byte[] GET_BYTES | |
| HTTP_VERSION_BYTES | back to summary |
|---|---|
| private static final byte[] HTTP_VERSION_BYTES | |
| instanceManager | back to summary |
|---|---|
| private InstanceManager instanceManager | |
| log | back to summary |
|---|---|
| private final Log log | |
| maxBinaryMessageBufferSize | back to summary |
|---|---|
| private int maxBinaryMessageBufferSize | |
| maxTextMessageBufferSize | back to summary |
|---|---|
| private int maxTextMessageBufferSize | |
| processPeriod | back to summary |
|---|---|
| private int processPeriod | |
| RANDOM | back to summary |
|---|---|
| private static final Random RANDOM | |
| ROOT_URI_BYTES | back to summary |
|---|---|
| private static final byte[] ROOT_URI_BYTES | |
| sessions | back to summary |
|---|---|
| private final Map<WsSession, WsSession> sessions | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| WsWebSocketContainer | back to summary |
|---|---|
| public WsWebSocketContainer() | |
| addHeader | back to summary |
|---|---|
| private static ByteBuffer addHeader(ByteBuffer result, String key, List<String> values) | |
| backgroundProcess | back to summary |
|---|---|
| public void backgroundProcess() Implements org.
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Object pojo, URI path) throws DeploymentException Implements jakarta.
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Class<?> annotatedEndpointClass, URI path) throws DeploymentException Implements jakarta.
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Class<? extends Endpoint> clazz, ClientEndpointConfig clientEndpointConfiguration, URI path) throws DeploymentException Implements jakarta. Doc from jakarta. Creates a new connection to the WebSocket.
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Endpoint endpoint, ClientEndpointConfig clientEndpointConfiguration, URI path) throws DeploymentException Implements jakarta. Doc from jakarta. Creates a new connection to the WebSocket.
| |
| connectToServerRecursive | back to summary |
|---|---|
| private Session connectToServerRecursive(ClientEndpointHolder clientEndpointHolder, ClientEndpointConfig clientEndpointConfiguration, URI path, Set<URI> redirectSet) throws DeploymentException | |
| createClientEndpointConfig | back to summary |
|---|---|
| private ClientEndpointConfig createClientEndpointConfig(Class<?> annotatedEndpointClass) throws DeploymentException | |
| createProxyRequest | back to summary |
|---|---|
| private static ByteBuffer createProxyRequest(String host, int port, String authorizationHeader) | |
| createRequest | back to summary |
|---|---|
| private static ByteBuffer createRequest(URI uri, Map<String, List<String>> reqHeaders) | |
| createRequestHeaders | back to summary |
|---|---|
| private static Map | |
| createSSLEngine | back to summary |
|---|---|
private SSLEngine createSSLEngine(ClientEndpointConfig clientEndpointConfig, String host, int port) throws DeploymentException
| |
| destroy | back to summary |
|---|---|
| public void destroy() Cleans up the resources still in use by WebSocket sessions created from this container. This includes closing
sessions and cancelling | |
| generateExtensionHeaders | back to summary |
|---|---|
| private static List | |
| generateWsKeyValue | back to summary |
|---|---|
| private static String generateWsKeyValue() | |
| getAsynchronousChannelGroup | back to summary |
|---|---|
| private AsynchronousChannelGroup getAsynchronousChannelGroup() | |
| getDefaultAsyncSendTimeout | back to summary |
|---|---|
| public long getDefaultAsyncSendTimeout() Implements jakarta. Doc from jakarta. Get the default timeout for sending a message asynchronously. The default value for this implementation is -1.
| |
| getDefaultMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public int getDefaultMaxBinaryMessageBufferSize() Implements jakarta. Doc from jakarta. Get the default maximum buffer size for binary messages.
| |
| getDefaultMaxSessionIdleTimeout | back to summary |
|---|---|
| public long getDefaultMaxSessionIdleTimeout() Implements jakarta. Doc from jakarta. Get the current default session idle timeout.
| |
| getDefaultMaxTextMessageBufferSize | back to summary |
|---|---|
| public int getDefaultMaxTextMessageBufferSize() Implements jakarta. Doc from jakarta. Get the default maximum buffer size for text messages.
| |
| getInstalledExtensions | back to summary |
|---|---|
| public Set Implements jakarta. Doc from jakarta. Get the installed extensions. Currently, this implementation does not support any extensions. | |
| getInstanceManager | back to summary |
|---|---|
| protected InstanceManager getInstanceManager(ClassLoader classLoader) | |
| getOpenSessions | back to summary |
|---|---|
| pack-priv Set | |
| getProcessPeriod | back to summary |
|---|---|
| public int getProcessPeriod() Implements org. The default value is 10 which means session expirations are processed every 10 seconds.
| |
| isRedirectStatus | back to summary |
|---|---|
| private static boolean isRedirectStatus(int httpResponseCode) | |
| parseHeaders | back to summary |
|---|---|
| private void parseHeaders(String line, Map<String, List<String>> headers) | |
| parseStatus | back to summary |
|---|---|
| private int parseStatus(String line) throws DeploymentException | |
| processAuthenticationChallenge | back to summary |
|---|---|
| private Session processAuthenticationChallenge(ClientEndpointHolder clientEndpointHolder, ClientEndpointConfig clientEndpointConfiguration, URI path, Set<URI> redirectSet, Map<String, Object> userProperties, ByteBuffer request, WsWebSocketContainer. | |
| processResponse | back to summary |
|---|---|
| private WsWebSocketContainer. Process response, blocking until HTTP response has been fully received.
| |
| putWithExpand | back to summary |
|---|---|
| private static ByteBuffer putWithExpand(ByteBuffer input, byte[] bytes) | |
| readLine | back to summary |
|---|---|
| private String readLine(ByteBuffer response) | |
| registerSession | back to summary |
|---|---|
| protected void registerSession(Object key, WsSession wsSession) | |
| setAsyncSendTimeout | back to summary |
|---|---|
| public void setAsyncSendTimeout(long timeout) Implements jakarta. Doc from jakarta. Set the default timeout for sending a message asynchronously. The default value for this implementation is -1.
| |
| setDefaultMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public void setDefaultMaxBinaryMessageBufferSize(int max) Implements jakarta. Doc from jakarta. Set the default maximum buffer size for binary messages.
| |
| setDefaultMaxSessionIdleTimeout | back to summary |
|---|---|
| public void setDefaultMaxSessionIdleTimeout(long timeout) Implements jakarta. Doc from jakarta. Set the default session idle timeout.
| |
| setDefaultMaxTextMessageBufferSize | back to summary |
|---|---|
| public void setDefaultMaxTextMessageBufferSize(int max) Implements jakarta. Doc from jakarta. Set the default maximum buffer size for text messages.
| |
| setInstanceManager | back to summary |
|---|---|
| protected void setInstanceManager(InstanceManager instanceManager) | |
| setProcessPeriod | back to summary |
|---|---|
| public void setProcessPeriod(int period) Implements org.
| |
| unregisterSession | back to summary |
|---|---|
| protected void unregisterSession(Object key, WsSession wsSession) | |
| writeRequest | back to summary |
|---|---|
| private static void writeRequest(AsyncChannelWrapper channel, ByteBuffer request, long timeout) throws TimeoutException, InterruptedException, ExecutionException | |
| Modifier and Type | Field and Description |
|---|---|
| private final HandshakeResponse | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public HandshakeResponse | |
| public int |
| handshakeResponse | back to summary |
|---|---|
| private final HandshakeResponse handshakeResponse | |
| status | back to summary |
|---|---|
| private final int status | |
| HttpResponse | back to summary |
|---|---|
| pack-priv HttpResponse(int status, HandshakeResponse handshakeResponse) | |
| getHandshakeResponse | back to summary |
|---|---|
| public HandshakeResponse getHandshakeResponse() | |
| getStatus | back to summary |
|---|---|
| public int getStatus() | |