public class AjaxPushRequestHandler
extends com.webobjects.appserver.WORequestHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
AjaxCometRequestHandlerKey |
| Constructor and Description |
|---|
AjaxPushRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.webobjects.appserver.WOResponse |
handleRequest(com.webobjects.appserver.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,
com.webobjects.foundation.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(com.webobjects.foundation.NSNotification n)
Remove stale responses when a session times out.
|
static void |
stop(String sessionID,
String name)
Push a string message to the client.
|
public static final String AjaxCometRequestHandlerKey
public void sessionDidTimeOut(com.webobjects.foundation.NSNotification n)
n - the session timeout notificationpublic com.webobjects.appserver.WOResponse handleRequest(com.webobjects.appserver.WORequest request)
handleRequest in class com.webobjects.appserver.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, com.webobjects.foundation.NSData message)
sessionID - the session id of the push responsename - the name of the push responsemessage - the message to pushCopyright © 2002 – 2020 Project Wonder.