public class JSONTransport extends LongPollingTransport
AbstractServerTransport.OneTimeScheduler, AbstractServerTransport.Scheduler| Modifier and Type | Field and Description |
|---|---|
static String |
MIME_TYPE_OPTION |
static String |
NAME |
static String |
PREFIX |
ALLOW_MULTI_SESSIONS_NO_BROWSER_OPTION, AUTOBATCH_OPTION, BROWSER_ID_OPTION, MAX_SESSIONS_PER_BROWSER_OPTION, MULTI_SESSION_INTERVAL_OPTIONJSON_DEBUG_OPTION, MESSAGE_PARAMINTERVAL_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_OPTION, META_CONNECT_DELIVERY_OPTION, TIMEOUT_OPTION| Constructor and Description |
|---|
JSONTransport(BayeuxServerImpl bayeux) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(javax.servlet.http.HttpServletRequest request) |
protected void |
complete(PrintWriter writer) |
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 |
send(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
PrintWriter writer,
ServerMessage message) |
bayeuxServerHandle, decBrowserId, findBrowserId, handle, handleJSONParseException, incBrowserId, metaConnectResumed, metaConnectSuspended, 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 JSONTransport(BayeuxServerImpl bayeux)
protected boolean isAlwaysFlushingAfterHandle()
isAlwaysFlushingAfterHandle in class LongPollingTransportLongPollingTransport.handle(HttpServletRequest, HttpServletResponse).protected void init()
AbstractServerTransportinit in class LongPollingTransportpublic 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 LongPollingTransportIOExceptionParseExceptionprotected PrintWriter send(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PrintWriter writer, ServerMessage message) throws IOException
send in class LongPollingTransportIOExceptionprotected void complete(PrintWriter writer) throws IOException
complete in class LongPollingTransportIOExceptionCopyright © 2008-2012 Dojo Foundation. All Rights Reserved.