| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PingFrame | Returns: PingFrame to be sent.The conn)WebSocket connection from which the ping frame will be sent.Implements org. Default implementation for onPreparePing, returns a (cached) PingFrame that has no application data. |
| public void | onWebsocketHandshakeReceivedAsClient(WebSocket conn, ClientHandshake request, ServerHandshake response)
Implements org. Called on the client side when the socket connection is first established, and the WebSocketImpl handshake response has been received. |
| public ServerHandshakeBuilder | onWebsocketHandshakeReceivedAsServer(WebSocket conn, Draft draft, ClientHandshake request)
Implements org. This default implementation does not do anything. |
| public void | onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request)
Implements org. This default implementation does not do anything which will cause the connections to always progress. |
| public void | onWebsocketPing(WebSocket conn, Framedata f)
Implements org. This default implementation will send a pong in response to the received ping. |
| public void | onWebsocketPong(WebSocket conn, Framedata f)
Implements org. This default implementation does not do anything. |
| pingFrame | back to summary |
|---|---|
| private PingFrame pingFrame | |
| WebSocketAdapter | back to summary |
|---|---|
| public WebSocketAdapter() | |
| onPreparePing | back to summary |
|---|---|
| public PingFrame onPreparePing(WebSocket conn) Implements org. Default implementation for onPreparePing, returns a (cached) PingFrame that has no application data.
| |
| onWebsocketHandshakeReceivedAsClient | back to summary |
|---|---|
| public void onWebsocketHandshakeReceivedAsClient(WebSocket conn, ClientHandshake request, ServerHandshake response) throws InvalidDataException Implements org. Doc from org. Called on the client side when the socket connection is first established, and the WebSocketImpl handshake response has been received.
| |
| onWebsocketHandshakeReceivedAsServer | back to summary |
|---|---|
| public ServerHandshakeBuilder onWebsocketHandshakeReceivedAsServer(WebSocket conn, Draft draft, ClientHandshake request) throws InvalidDataException Implements org. This default implementation does not do anything. Go ahead and overwrite it.
| |
| onWebsocketHandshakeSentAsClient | back to summary |
|---|---|
| public void onWebsocketHandshakeSentAsClient(WebSocket conn, ClientHandshake request) throws InvalidDataException Implements org. This default implementation does not do anything which will cause the connections to always progress.
| |
| onWebsocketPing | back to summary |
|---|---|
| public void onWebsocketPing(WebSocket conn, Framedata f) Implements org. This default implementation will send a pong in response to the received ping. The pong frame will have the same payload as the ping frame.
| |
| onWebsocketPong | back to summary |
|---|---|
| public void onWebsocketPong(WebSocket conn, Framedata f) Implements org. This default implementation does not do anything. Go ahead and overwrite it.
| |