| Package | Description |
|---|---|
| org.apache.wicket.protocol.ws | |
| org.apache.wicket.protocol.ws.api | |
| org.apache.wicket.protocol.ws.api.registry |
| Modifier and Type | Method and Description |
|---|---|
WebSocketRequestHandler |
WebSocketSettings.newWebSocketRequestHandler(Page page,
IWebSocketConnection connection)
A factory method for creating instances of
WebSocketRequestHandler
for processing a web socket request |
org.apache.wicket.request.http.WebResponse |
WebSocketSettings.newWebSocketResponse(IWebSocketConnection connection)
A factory method for the
WebResponse
that should be used to write the response back to the client/browser |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractWebSocketConnection
Abstract class handling the Web Socket broadcast messages.
|
| Modifier and Type | Method and Description |
|---|---|
IWebSocketConnection |
WebSocketResponse.getContainerResponse() |
IWebSocketConnection |
IWebSocketConnection.sendMessage(byte[] message,
int offset,
int length)
Sends a binary message to the client.
|
IWebSocketConnection |
IWebSocketConnection.sendMessage(String message)
Sends a text message to the client.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractWebSocketProcessor.onConnect(IWebSocketConnection connection)
A helper that registers the opened connection in the application-level registry.
|
| Constructor and Description |
|---|
WebSocketRequestHandler(Component component,
IWebSocketConnection connection) |
WebSocketResponse(IWebSocketConnection conn) |
| Modifier and Type | Method and Description |
|---|---|
IWebSocketConnection |
IWebSocketConnectionRegistry.getConnection(Application application,
String sessionId,
IKey key) |
IWebSocketConnection |
SimpleWebSocketConnectionRegistry.getConnection(Application application,
String sessionId,
IKey key) |
| Modifier and Type | Method and Description |
|---|---|
Collection<IWebSocketConnection> |
IWebSocketConnectionRegistry.getConnections(Application application) |
Collection<IWebSocketConnection> |
SimpleWebSocketConnectionRegistry.getConnections(Application application)
Returns a collection of currently active websockets.
|
Collection<IWebSocketConnection> |
IWebSocketConnectionRegistry.getConnections(Application application,
String sessionId) |
Collection<IWebSocketConnection> |
SimpleWebSocketConnectionRegistry.getConnections(Application application,
String sessionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
IWebSocketConnectionRegistry.setConnection(Application application,
String sessionId,
IKey key,
IWebSocketConnection connection)
Adds a new connection into the registry at the specified coordinates (application+session+page)
|
void |
SimpleWebSocketConnectionRegistry.setConnection(Application application,
String sessionId,
IKey key,
IWebSocketConnection connection) |
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.