|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.protocol.ws.WebSocketSettings
public class WebSocketSettings
| Nested Class Summary | |
|---|---|
static class |
WebSocketSettings.SameThreadExecutor
Simple executor that runs the tasks in the caller thread. |
| Nested classes/interfaces inherited from interface org.apache.wicket.protocol.ws.IWebSocketSettings |
|---|
IWebSocketSettings.Holder |
| Field Summary |
|---|
| Fields inherited from interface org.apache.wicket.protocol.ws.IWebSocketSettings |
|---|
KEY |
| Constructor Summary | |
|---|---|
WebSocketSettings()
|
|
| Method Summary | |
|---|---|
IWebSocketConnectionRegistry |
getConnectionRegistry()
|
Executor |
getSendPayloadExecutor()
The executor that broadcasts the WebSocketPayload
via Wicket's event bus. |
Executor |
getWebSocketPushMessageExecutor()
The executor for processing websocket push messages broadcasted to all sessions. |
org.apache.wicket.request.http.WebRequest |
newWebSocketRequest(javax.servlet.http.HttpServletRequest request,
String filterPath)
A factory method for the WebRequest
that should be used in the WebSocket processing request cycle |
org.apache.wicket.request.http.WebResponse |
newWebSocketResponse(IWebSocketConnection connection)
A factory method for the WebResponse
that should be used to write the response back to the client/browser |
IWebSocketSettings |
setConnectionRegistry(IWebSocketConnectionRegistry connectionRegistry)
|
WebSocketSettings |
setSendPayloadExecutor(Executor sendPayloadExecutor)
The executor that broadcasts the WebSocketPayload
via Wicket's event bus. |
IWebSocketSettings |
setWebSocketPushMessageExecutor(Executor executor)
Set the executor for processing websocket push messages broadcasted to all sessions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketSettings()
| Method Detail |
|---|
public IWebSocketSettings setWebSocketPushMessageExecutor(Executor executor)
IWebSocketSettings
setWebSocketPushMessageExecutor in interface IWebSocketSettingsexecutor - The executor used for processing push messages.public IWebSocketConnectionRegistry getConnectionRegistry()
getConnectionRegistry in interface IWebSocketSettingspublic IWebSocketSettings setConnectionRegistry(IWebSocketConnectionRegistry connectionRegistry)
setConnectionRegistry in interface IWebSocketSettingspublic Executor getWebSocketPushMessageExecutor()
IWebSocketSettings
getWebSocketPushMessageExecutor in interface IWebSocketSettingspublic WebSocketSettings setSendPayloadExecutor(Executor sendPayloadExecutor)
WebSocketPayload
via Wicket's event bus.
Default executor does all the processing in the caller thread.
sendPayloadExecutor - The executor used for broadcasting the events with web socket payloads to
WebSocketBehaviors and
WebSocketResources.public Executor getSendPayloadExecutor()
WebSocketPayload
via Wicket's event bus.
WebSocketBehaviors and
WebSocketResources.public org.apache.wicket.request.http.WebResponse newWebSocketResponse(IWebSocketConnection connection)
WebResponse
that should be used to write the response back to the client/browser
connection - The active web socket connection
public org.apache.wicket.request.http.WebRequest newWebSocketRequest(javax.servlet.http.HttpServletRequest request,
String filterPath)
WebRequest
that should be used in the WebSocket processing request cycle
request - The upgraded http requestfilterPath - The configured filter path of WicketFilter in web.xml
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||