public class JSONPTransport extends LongPollingTransport
LongPollingTransport.LongPollSchedulerAbstractServerTransport.OneTimeScheduler, AbstractServerTransport.Scheduler| Modifier and Type | Field and Description |
|---|---|
static String |
CALLBACK_PARAMETER_OPTION |
static String |
MIME_TYPE_OPTION |
static String |
NAME |
static String |
PREFIX |
ALLOW_MULTI_SESSIONS_NO_BROWSER_OPTION, AUTOBATCH_OPTION, BROWSER_COOKIE_DOMAIN_OPTION, BROWSER_COOKIE_NAME_OPTION, BROWSER_COOKIE_PATH_OPTION, BROWSER_ID_OPTION, MAX_SESSIONS_PER_BROWSER_OPTION, MULTI_SESSION_INTERVAL_OPTIONJSON_DEBUG_OPTION, MESSAGE_PARAMINTERVAL_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_TIMEOUT_OPTION, MAX_QUEUE_OPTION, META_CONNECT_DELIVERY_OPTION, RANDOMIZE_LAZY_TIMEOUT_OPTION, TIMEOUT_OPTION| Constructor and Description |
|---|
JSONPTransport(BayeuxServerImpl bayeux) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(javax.servlet.http.HttpServletRequest request) |
protected void |
finishWrite(PrintWriter writer,
ServerSessionImpl session) |
String |
getCallbackParameter() |
protected void |
init()
Initialise the transport, resolving default and direct options.
|
protected boolean |
isAlwaysFlushingAfterHandle() |
protected ServerMessage.Mutable[] |
parseMessages(javax.servlet.http.HttpServletRequest request) |
protected PrintWriter |
writeMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer,
ServerSessionImpl session,
ServerMessage message) |
bayeuxServerHandle, decBrowserId, findBrowserId, handle, handleJSONParseException, incBrowserId, metaConnectResumed, metaConnectSuspended, newLongPollScheduler, parseMessages, setBrowserId, sweepgetContext, getCurrentRequest, setCurrentRequestdebug, destroy, getAdvice, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getTimeout, isMetaConnectDeliveryOnly, parseMessages, parseMessages, setAdvice, setInterval, setMaxInterval, setMaxLazyTimeout, setMetaConnectDeliveryOnly, setTimeoutgetName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getOption, getOptionNames, getOptionPrefixpublic static final String PREFIX
public static final String NAME
public static final String MIME_TYPE_OPTION
public static final String CALLBACK_PARAMETER_OPTION
public JSONPTransport(BayeuxServerImpl bayeux)
protected boolean isAlwaysFlushingAfterHandle()
isAlwaysFlushingAfterHandle in class LongPollingTransportLongPollingTransport.handle(HttpServletRequest, HttpServletResponse).LongPollingTransport.isAlwaysFlushingAfterHandle()protected void init()
AbstractServerTransportinit in class LongPollingTransportJSONTransport.init()public boolean accept(javax.servlet.http.HttpServletRequest request)
accept in class HttpTransportprotected ServerMessage.Mutable[] parseMessages(javax.servlet.http.HttpServletRequest request) throws IOException, ParseException
parseMessages in class LongPollingTransportIOExceptionParseExceptionpublic String getCallbackParameter()
protected PrintWriter writeMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter writer, ServerSessionImpl session, ServerMessage message) throws IOException
writeMessage in class LongPollingTransportIOExceptionprotected void finishWrite(PrintWriter writer, ServerSessionImpl session) throws IOException
finishWrite in class LongPollingTransportIOExceptionCopyright © 2008–2014 Dojo Foundation. All rights reserved.