Public Member Functions | |
| int | activeConnections () |
| void | onBinary (final WebSocketSession session, final ByteBuffer message) throws Exception |
| Invocado cuando se recibe un mensaje binario del cliente. | |
| void | onClose (final WebSocketSession session, final WebSocketCloseStatus closeStatus) throws Exception |
| Invocado cuando el cliente solicita cerrar la conexión. | |
| void | onError (final WebSocketSession session, final Throwable error) |
| Invocado cuando ocurre un error en la conexión WebSocket. | |
| void | onOpen (final WebSocketSession clientSession) throws Exception |
| Invocado cuando la conexión WebSocket se abre exitosamente. | |
| void | onText (final WebSocketSession session, final String message) throws Exception |
| Invocado cuando se recibe un mensaje de texto del cliente. | |
| Set< String > | subprotocols () |
| Devuelve el conjunto de subprotocolos WebSocket que este endpoint acepta. | |
| WebSocketProxyEndpoint (final BackendResolver backendResolver, final WebSocketClient wsClient) | |
| WebSocketProxyEndpoint (final BackendResolver backendResolver, final WebSocketClient wsClient, final Duration connectTimeout) | |
Definition at line 48 of file WebSocketProxyEndpoint.java.
| dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.WebSocketProxyEndpoint | ( | final BackendResolver | backendResolver, |
| final WebSocketClient | wsClient ) |
Definition at line 57 of file WebSocketProxyEndpoint.java.
| dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.WebSocketProxyEndpoint | ( | final BackendResolver | backendResolver, |
| final WebSocketClient | wsClient, | ||
| final Duration | connectTimeout ) |
Definition at line 61 of file WebSocketProxyEndpoint.java.
| int dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.activeConnections | ( | ) |
Definition at line 68 of file WebSocketProxyEndpoint.java.
Referenced by onClose(), onError(), and onOpen().
| void dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.onBinary | ( | final WebSocketSession | session, |
| final ByteBuffer | message ) throws Exception |
Invocado cuando se recibe un mensaje binario del cliente.
| session | sesión WebSocket activa |
| message | contenido binario recibido |
| Exception | si ocurre un error durante el procesamiento |
Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.
Definition at line 121 of file WebSocketProxyEndpoint.java.
| void dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.onClose | ( | final WebSocketSession | session, |
| final WebSocketCloseStatus | closeStatus ) throws Exception |
Invocado cuando el cliente solicita cerrar la conexión.
| session | sesión WebSocket activa |
| closeStatus | estado de cierre indicado por el cliente |
| Exception | si ocurre un error durante el procesamiento |
Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.
Definition at line 135 of file WebSocketProxyEndpoint.java.
References activeConnections().
| void dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.onError | ( | final WebSocketSession | session, |
| final Throwable | error ) |
Invocado cuando ocurre un error en la conexión WebSocket.
| session | sesión WebSocket activa |
| error | excepción que causó el error |
Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.
Definition at line 144 of file WebSocketProxyEndpoint.java.
References activeConnections(), and dev.rafex.ether.websocket.core.WebSocketSession.id().
| void dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.onOpen | ( | final WebSocketSession | session | ) | throws Exception |
Invocado cuando la conexión WebSocket se abre exitosamente.
| session | sesión WebSocket activa |
| Exception | si ocurre un error durante el procesamiento |
Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.
Definition at line 73 of file WebSocketProxyEndpoint.java.
References activeConnections().
| void dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.onText | ( | final WebSocketSession | session, |
| final String | message ) throws Exception |
Invocado cuando se recibe un mensaje de texto del cliente.
| session | sesión WebSocket activa |
| message | contenido de texto recibido |
| Exception | si ocurre un error durante el procesamiento |
Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.
Definition at line 108 of file WebSocketProxyEndpoint.java.
| Set< String > dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.subprotocols | ( | ) |
Devuelve el conjunto de subprotocolos WebSocket que este endpoint acepta.
El servidor seleccionará un subprotocolo de esta lista durante el handshake.
Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.
Definition at line 153 of file WebSocketProxyEndpoint.java.