public class JSONPTransport extends AbstractStreamHttpTransport
AbstractStreamHttpTransport.DispatchingLongPollScheduler
AbstractHttpTransport.Context, AbstractHttpTransport.HttpScheduler, AbstractHttpTransport.LongPollScheduler
AbstractServerTransport.Scheduler
Modifier and Type | Field and Description |
---|---|
static String |
CALLBACK_PARAMETER_MAX_LENGTH_OPTION |
static String |
CALLBACK_PARAMETER_OPTION |
static String |
NAME |
static String |
PREFIX |
BROWSER_COOKIE_DOMAIN_OPTION, BROWSER_COOKIE_HTTP_ONLY_OPTION, BROWSER_COOKIE_NAME_OPTION, BROWSER_COOKIE_PATH_OPTION, BROWSER_COOKIE_SAME_SITE_OPTION, BROWSER_COOKIE_SECURE_OPTION, DUPLICATE_META_CONNECT_HTTP_RESPONSE_CODE_OPTION, HTTP2_MAX_SESSIONS_PER_BROWSER_OPTION, JSON_DEBUG_OPTION, MAX_SESSIONS_PER_BROWSER_OPTION, MESSAGE_PARAM, MULTI_SESSION_INTERVAL_OPTION, TRUST_CLIENT_SESSION_OPTION
ALLOW_MESSAGE_DELIVERY_DURING_HANDSHAKE, HANDSHAKE_RECONNECT_OPTION, INTERVAL_OPTION, JSON_CONTEXT_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_TIMEOUT_OPTION, MAX_MESSAGE_SIZE_OPTION, MAX_PROCESSING_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, writeComplete, writeMessage, writeMessage
decBrowserId, findBrowserId, findCurrentSessions, findSession, flush, getAsyncContext, getDuplicateMetaConnectHttpResponseCode, getMultiSessionInterval, handleJSONParseException, handleMessage, incBrowserId, isHTTP2, processMessages, resume, sendError, setBrowserId, sweep, toJSONBytes
allowMessageDeliveryDuringHandshake, destroy, dump, getBayeux, getInterval, getJSONContextServer, getMaxInterval, getMaxLazyTimeout, getMaxMessageSize, getTimeout, isAllowMessageDeliveryDuringHandshake, isHandshakeReconnect, isMetaConnectDeliveryOnly, newMetaConnectCycle, parseMessages, parseMessages, processReply, scheduleExpiration, setAllowMessageDeliveryDuringHandshake, setHandshakeReconnect, setInterval, setMaxInterval, setMaxLazyTimeout, setMaxMessageSize, setMetaConnectDeliveryOnly, setTimeout, toJSON, toString
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getOption, getOptionNames, getOptionPrefix
public static final String PREFIX
public static final String NAME
public static final String CALLBACK_PARAMETER_OPTION
public static final String CALLBACK_PARAMETER_MAX_LENGTH_OPTION
public JSONPTransport(BayeuxServerImpl bayeux)
public void init()
AbstractServerTransport
init
in class AbstractHttpTransport
public boolean accept(javax.servlet.http.HttpServletRequest request)
accept
in class AbstractHttpTransport
protected ServerMessage.Mutable[] parseMessages(javax.servlet.http.HttpServletRequest request) throws IOException, ParseException
parseMessages
in class AbstractStreamHttpTransport
IOException
ParseException
public String getCallbackParameter()
protected javax.servlet.ServletOutputStream beginWrite(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
beginWrite
in class AbstractStreamHttpTransport
IOException
protected void endWrite(javax.servlet.http.HttpServletResponse response, javax.servlet.ServletOutputStream output) throws IOException
endWrite
in class AbstractStreamHttpTransport
IOException
Copyright © 2008–2024 The CometD Project. All rights reserved.