public class AjaxPushRequestHandler extends WORequestHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
AjaxCometRequestHandlerKey |
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(String sessionID,
String name)
Returns whether or not there is a response open for the given session id and name.
|
static void |
push(String sessionID,
String name,
NSData message)
Push a data message to the client.
|
static void |
push(String sessionID,
String name,
String message)
Push a string message to the client.
|
void |
sessionDidTimeOut(NSNotification n)
Remove stale responses when a session times out.
|
static void |
stop(String sessionID,
String name)
Push a string message to the client.
|
toStringpublic static final String AjaxCometRequestHandlerKey
public void sessionDidTimeOut(NSNotification n)
n - the session timeout notificationpublic WOResponse handleRequest(WORequest request)
handleRequest in class WORequestHandlerrequest - the requestpublic static boolean isResponseOpen(String sessionID, String name)
sessionID - the session id of the push responsename - the name of the push responsepublic static void stop(String sessionID, String name)
sessionID - the session id of the push responsename - the name of the push responsepublic static void push(String sessionID, String name, String message)
sessionID - the session id of the push responsename - the name of the push responsemessage - the message to pushpublic static void push(String sessionID, String name, NSData message)
sessionID - the session id of the push responsename - the name of the push responsemessage - the message to pushCopyright © 2002 – 2025 Project Wonder.