Interface IWebSocketRequestHandler
- All Superinterfaces:
ILoggableRequestHandler
,IPageClassRequestHandler
,IPageRequestHandler
,IPartialPageRequestHandler
,IRequestHandler
- All Known Implementing Classes:
WebSocketRequestHandler
public interface IWebSocketRequestHandler
extends IPartialPageRequestHandler, ILoggableRequestHandler
An interface for outbound communication with web socket clients
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
push
(byte[] message, int offset, int length) Pushes a binary message to the client.void
push
(CharSequence message) Pushes a text message to the client.pushAsync
(byte[] message, int offset, int length) Pushes a binary message to the client.pushAsync
(byte[] message, int offset, int length, long timeout) Pushes a binary message to the client.pushAsync
(CharSequence message) Pushes a text message to the client in an asynchronous way.pushAsync
(CharSequence message, long timeout) Pushes a text message to the client in an asynchronous way.Methods inherited from interface org.apache.wicket.request.ILoggableRequestHandler
getLogData
Methods inherited from interface org.apache.wicket.core.request.handler.IPageClassRequestHandler
getPageClass, getPageParameters
Methods inherited from interface org.apache.wicket.core.request.handler.IPageRequestHandler
getPage, getPageId, getRenderCount, isPageInstanceCreated
Methods inherited from interface org.apache.wicket.core.request.handler.IPartialPageRequestHandler
add, add, addChildren, appendJavaScript, focusComponent, getComponents, getHeaderResponse, prependJavaScript
Methods inherited from interface org.apache.wicket.request.IRequestHandler
detach, respond
-
Method Details
-
push
Pushes a text message to the client.- Parameters:
message
- the text message to push to the client if the web socket connection is open
-
pushAsync
Pushes a text message to the client in an asynchronous way.- Parameters:
message
- the text message to push to the client if the web socket connection is open- Returns:
- a
Future
representing the send operation. Or null if connection is closed.
-
pushAsync
Pushes a text message to the client in an asynchronous way.- Parameters:
message
- the text message to push to the client if the web socket connection is opentimeout
- the timeout for operation- Returns:
- a
Future
representing the send operation. Or null if connection is closed.
-
push
Pushes a binary message to the client.- Parameters:
message
- the binary message to push to the client if the web socket connection is openoffset
- the offset to start to read from the messagelength
- how many bytes to read from the message
-
pushAsync
Pushes a binary message to the client.- Parameters:
message
- the binary message to push to the client if the web socket connection is openoffset
- the offset to start to read from the messagelength
- how many bytes to read from the message- Returns:
- a
Future
representing the send operation. Or null if connection is closed.
-
pushAsync
Pushes a binary message to the client.- Parameters:
message
- the binary message to push to the client if the web socket connection is openoffset
- the offset to start to read from the messagelength
- how many bytes to read from the messagetimeout
- the timeout for operation- Returns:
- a
Future
representing the send operation. Or null if connection is closed.
-