public class DefaultLongPollingWebSocket extends java.lang.Object implements ILongPolling
| Constructor and Description |
|---|
DefaultLongPollingWebSocket() |
| Modifier and Type | Method and Description |
|---|---|
void |
abortThread()
Abort long polling thread.
|
void |
abortThreadWithErrorIfWaiting()
Abort long polling thread with error.
|
void |
abortThreadWithouContinuingPolling()
Abort long polling thread - and tell the client that it should not
continue to create new poll requests.
|
boolean |
getContinuePolling() |
java.lang.String |
getId()
Returns the id under which the buffered content is registered.
|
java.lang.String |
getLongPollingResponse() |
java.lang.String |
getURL()
The URL that can be passed back to client side for accessing the
buffered content.
|
void |
keepAlive()
Same as
wakeupForReconnect(). |
void |
registerEndPoint(WebSocketPollingEndPoint endPoint) |
void |
unregisterEndPoint() |
void |
wakeup(boolean continuePolling)
Send a trigger to the client side so that the WEBSOCKETPOLLING component activates its
actionListener processing.
|
void |
wakeupForReconnect()
In order to avoid time outs of connections you may send some "keep alive" trigger
periodically.
|
public java.lang.String getId()
getId in interface ILongPollingpublic boolean getContinuePolling()
getContinuePolling in interface ILongPollingpublic void registerEndPoint(WebSocketPollingEndPoint endPoint)
public void unregisterEndPoint()
public java.lang.String getURL()
getURL in interface ILongPollingpublic void wakeup(boolean continuePolling)
wakeup in interface ILongPollingcontinuePolling - If "true" then the web socket connection is kept. If "false" then the connection is closed.public void wakeupForReconnect()
wakeupForReconnect in interface ILongPollingpublic void abortThreadWithouContinuingPolling()
ILongPollingabortThreadWithouContinuingPolling in interface ILongPollingpublic void abortThread()
ILongPollingabortThread in interface ILongPollingpublic void abortThreadWithErrorIfWaiting()
ILongPollingabortThreadWithErrorIfWaiting in interface ILongPollingpublic java.lang.String getLongPollingResponse()
public void keepAlive()
wakeupForReconnect().keepAlive in interface ILongPollingCopyright © CaptainCasa Gmbh. All Rights Reserved.