public class AsyncJSONTransport extends AbstractHttpTransport
| Modifier and Type | Class and Description |
|---|---|
protected class |
AsyncJSONTransport.AbstractReader |
protected class |
AsyncJSONTransport.CharsetReader |
protected class |
AsyncJSONTransport.UTF8Reader |
protected class |
AsyncJSONTransport.Writer |
AbstractHttpTransport.Context, AbstractHttpTransport.HttpScheduler, AbstractHttpTransport.LongPollSchedulerAbstractServerTransport.SchedulerBROWSER_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_OPTIONALLOW_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 |
|---|
AsyncJSONTransport(BayeuxServerImpl bayeux) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(javax.servlet.http.HttpServletRequest request) |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected AbstractHttpTransport.HttpScheduler |
newHttpScheduler(AbstractHttpTransport.Context context,
org.cometd.bayeux.Promise<Void> promise,
ServerMessage.Mutable reply,
long timeout) |
protected void |
process(String json,
AbstractHttpTransport.Context context,
org.cometd.bayeux.Promise<Void> promise) |
protected AbstractHttpTransport.HttpScheduler |
suspend(AbstractHttpTransport.Context context,
org.cometd.bayeux.Promise<Void> promise,
ServerMessage.Mutable message,
long timeout) |
protected void |
write(AbstractHttpTransport.Context context,
List<ServerMessage> messages,
org.cometd.bayeux.Promise<Void> promise) |
protected void |
writeComplete(AbstractHttpTransport.Context context,
List<ServerMessage> messages) |
decBrowserId, findBrowserId, findCurrentSessions, findSession, flush, getAsyncContext, getDuplicateMetaConnectHttpResponseCode, getMultiSessionInterval, handleJSONParseException, handleMessage, incBrowserId, init, isHTTP2, processMessages, resume, sendError, setBrowserId, sweep, toJSONBytesallowMessageDeliveryDuringHandshake, 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, toStringgetName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic AsyncJSONTransport(BayeuxServerImpl bayeux)
public boolean accept(javax.servlet.http.HttpServletRequest request)
accept in class AbstractHttpTransportpublic void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
handle in class AbstractHttpTransportIOExceptionprotected void process(String json, AbstractHttpTransport.Context context, org.cometd.bayeux.Promise<Void> promise)
protected AbstractHttpTransport.HttpScheduler suspend(AbstractHttpTransport.Context context, org.cometd.bayeux.Promise<Void> promise, ServerMessage.Mutable message, long timeout)
suspend in class AbstractHttpTransportprotected AbstractHttpTransport.HttpScheduler newHttpScheduler(AbstractHttpTransport.Context context, org.cometd.bayeux.Promise<Void> promise, ServerMessage.Mutable reply, long timeout)
protected void write(AbstractHttpTransport.Context context, List<ServerMessage> messages, org.cometd.bayeux.Promise<Void> promise)
write in class AbstractHttpTransportprotected void writeComplete(AbstractHttpTransport.Context context, List<ServerMessage> messages)
Copyright © 2008–2022 The CometD Project. All rights reserved.