public class AjaxPushRequestHandler extends WORequestHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AjaxCometRequestHandlerKey |
protected static org.apache.log4j.Logger |
log |
DidHandleRequestNotification| Constructor and Description |
|---|
AjaxPushRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
WOResponse |
handleRequest(WORequest request)
Get/Create the current request for the session and return it.
|
static boolean |
isResponseOpen(java.lang.String sessionID,
java.lang.String name)
Returns whether or not there is a response open for the given session id and name.
|
static void |
push(java.lang.String sessionID,
java.lang.String name,
NSData message)
Push a data message to the client.
|
static void |
push(java.lang.String sessionID,
java.lang.String name,
java.lang.String message)
Push a string message to the client.
|
void |
sessionDidTimeOut(NSNotification n)
Remove stale responses when a session times out.
|
static void |
stop(java.lang.String sessionID,
java.lang.String name)
Push a string message to the client.
|
toStringpublic static final java.lang.String AjaxCometRequestHandlerKey
protected static org.apache.log4j.Logger log
public void sessionDidTimeOut(NSNotification n)
n - the session timeout notificationpublic WOResponse handleRequest(WORequest request)
handleRequest in class WORequestHandlerrequest - the requestpublic static boolean isResponseOpen(java.lang.String sessionID,
java.lang.String name)
sessionID - the session id of the push responsename - the name of the push responsepublic static void stop(java.lang.String sessionID,
java.lang.String name)
sessionID - the session id of the push responsename - the name of the push responsepublic static void push(java.lang.String sessionID,
java.lang.String name,
java.lang.String message)
sessionID - the session id of the push responsename - the name of the push responsemessage - the message to pushpublic static void push(java.lang.String sessionID,
java.lang.String name,
NSData message)
sessionID - the session id of the push responsename - the name of the push responsemessage - the message to pushCopyright © 2002 – 2022 Project Wonder.