Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint Class Reference
Inheritance diagram for dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint:
Collaboration diagram for dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint:

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)

Detailed Description

Definition at line 48 of file WebSocketProxyEndpoint.java.

Constructor & Destructor Documentation

◆ WebSocketProxyEndpoint() [1/2]

dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.WebSocketProxyEndpoint ( final BackendResolver backendResolver,
final WebSocketClient wsClient )

Definition at line 57 of file WebSocketProxyEndpoint.java.

◆ WebSocketProxyEndpoint() [2/2]

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.

Member Function Documentation

◆ activeConnections()

int dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.activeConnections ( )

Definition at line 68 of file WebSocketProxyEndpoint.java.

Referenced by onClose(), onError(), and onOpen().

Here is the caller graph for this function:

◆ onBinary()

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.

Parameters
sessionsesión WebSocket activa
messagecontenido binario recibido
Exceptions
Exceptionsi ocurre un error durante el procesamiento

Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.

Definition at line 121 of file WebSocketProxyEndpoint.java.

◆ onClose()

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.

Parameters
sessionsesión WebSocket activa
closeStatusestado de cierre indicado por el cliente
Exceptions
Exceptionsi ocurre un error durante el procesamiento

Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.

Definition at line 135 of file WebSocketProxyEndpoint.java.

References activeConnections().

Here is the call graph for this function:

◆ onError()

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.

Parameters
sessionsesión WebSocket activa
errorexcepció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().

Here is the call graph for this function:

◆ onOpen()

void dev.rafex.ether.websocket.proxy.jetty12.WebSocketProxyEndpoint.onOpen ( final WebSocketSession session) throws Exception

Invocado cuando la conexión WebSocket se abre exitosamente.

Parameters
sessionsesión WebSocket activa
Exceptions
Exceptionsi ocurre un error durante el procesamiento

Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.

Definition at line 73 of file WebSocketProxyEndpoint.java.

References activeConnections().

Here is the call graph for this function:

◆ onText()

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.

Parameters
sessionsesión WebSocket activa
messagecontenido de texto recibido
Exceptions
Exceptionsi ocurre un error durante el procesamiento

Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.

Definition at line 108 of file WebSocketProxyEndpoint.java.

◆ subprotocols()

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.

Returns
conjunto de nombres de subprotocolo soportados; vacío por defecto

Implements dev.rafex.ether.websocket.core.WebSocketEndpoint.

Definition at line 153 of file WebSocketProxyEndpoint.java.


The documentation for this class was generated from the following file:
  • ether-websocket-proxy-jetty12/ether-websocket-proxy-jetty12/src/main/java/dev/rafex/ether/websocket/proxy/jetty12/WebSocketProxyEndpoint.java