Package | Description |
---|---|
org.apache.wicket.protocol.ws | |
org.apache.wicket.protocol.ws.api | |
org.apache.wicket.protocol.ws.api.registry | |
org.apache.wicket.protocol.ws.javax |
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 |
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 |
SimpleWebSocketConnectionRegistry.getConnection(Application application,
String sessionId,
IKey key) |
IWebSocketConnection |
IWebSocketConnectionRegistry.getConnection(Application application,
String sessionId,
IKey key) |
Modifier and Type | Method and Description |
---|---|
Collection<IWebSocketConnection> |
SimpleWebSocketConnectionRegistry.getConnections(Application application)
Returns a collection of currently active websockets.
|
Collection<IWebSocketConnection> |
IWebSocketConnectionRegistry.getConnections(Application application) |
Collection<IWebSocketConnection> |
SimpleWebSocketConnectionRegistry.getConnections(Application application,
String sessionId) |
Collection<IWebSocketConnection> |
IWebSocketConnectionRegistry.getConnections(Application application,
String sessionId) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleWebSocketConnectionRegistry.setConnection(Application application,
String sessionId,
IKey key,
IWebSocketConnection connection) |
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)
|
Modifier and Type | Class and Description |
---|---|
class |
JavaxWebSocketConnection
A wrapper around JSR 356's native Session.
|
Modifier and Type | Method and Description |
---|---|
IWebSocketConnection |
JavaxWebSocketConnection.sendMessage(byte[] message,
int offset,
int length) |
IWebSocketConnection |
JavaxWebSocketConnection.sendMessage(String message) |
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.