public class JSONPTransport extends AbstractStreamHttpTransport
AbstractStreamHttpTransport.DispatchingLongPollSchedulerAbstractHttpTransport.HttpScheduler, AbstractHttpTransport.LongPollSchedulerAbstractServerTransport.Scheduler| Modifier and Type | Field and Description |
|---|---|
static String |
CALLBACK_PARAMETER_MAX_LENGTH_OPTION |
static String |
CALLBACK_PARAMETER_OPTION |
static String |
MIME_TYPE_OPTION |
static String |
NAME |
static String |
PREFIX |
_logger, ALLOW_MULTI_SESSIONS_NO_BROWSER_OPTION, AUTOBATCH_OPTION, BROWSER_COOKIE_DOMAIN_OPTION, BROWSER_COOKIE_HTTP_ONLY_OPTION, BROWSER_COOKIE_NAME_OPTION, BROWSER_COOKIE_PATH_OPTION, BROWSER_COOKIE_SECURE_OPTION, JSON_DEBUG_OPTION, MAX_SESSIONS_PER_BROWSER_OPTION, MESSAGE_PARAM, MULTI_SESSION_INTERVAL_OPTIONINTERVAL_OPTION, JSON_CONTEXT_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_TIMEOUT_OPTION, MAX_QUEUE_OPTION, META_CONNECT_DELIVERY_OPTION, TIMEOUT_OPTION| Constructor and Description |
|---|
JSONPTransport(BayeuxServerImpl bayeux) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(javax.servlet.http.HttpServletRequest request) |
protected javax.servlet.ServletOutputStream |
beginWrite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
endWrite(javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletOutputStream output) |
String |
getCallbackParameter() |
void |
init()
Initializes the transport, resolving default and direct options.
|
protected ServerMessage.Mutable[] |
parseMessages(javax.servlet.http.HttpServletRequest request) |
handle, newHttpScheduler, parseMessages, process, suspend, write, writeMessagebayeuxServerHandle, decBrowserId, error, findBrowserId, findCurrentSessions, flush, getContext, getCurrentRequest, getMultiSessionInterval, handleJSONParseException, incBrowserId, isAllowMultiSessionsNoBrowser, isAutoBatch, metaConnectResumed, metaConnectSuspended, processMessages, processMetaConnect, processMetaHandshake, processReply, resume, setBrowserId, setCurrentRequest, sweepdestroy, getAdvice, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getTimeout, isMetaConnectDeliveryOnly, parseMessages, parseMessages, setInterval, setMaxInterval, setMaxLazyTimeout, setMetaConnectDeliveryOnly, setTimeout, toJSONBytesgetName, 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 static final String CALLBACK_PARAMETER_MAX_LENGTH_OPTION
public JSONPTransport(BayeuxServerImpl bayeux)
public void init()
AbstractServerTransportinit in class AbstractHttpTransportpublic boolean accept(javax.servlet.http.HttpServletRequest request)
accept in class AbstractHttpTransportprotected ServerMessage.Mutable[] parseMessages(javax.servlet.http.HttpServletRequest request) throws IOException, ParseException
parseMessages in class AbstractStreamHttpTransportIOExceptionParseExceptionpublic String getCallbackParameter()
protected javax.servlet.ServletOutputStream beginWrite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
beginWrite in class AbstractStreamHttpTransportIOExceptionprotected void endWrite(javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletOutputStream output)
throws IOException
endWrite in class AbstractStreamHttpTransportIOExceptionCopyright © 2008–2015 Dojo Foundation. All rights reserved.