java.lang.Object
org.cometd.common.AbstractTransport
org.cometd.server.AbstractServerTransport
org.cometd.server.http.AbstractHttpTransport
org.cometd.server.http.JSONPHttpTransport
- All Implemented Interfaces:
ServerTransport,org.cometd.bayeux.Transport,org.eclipse.jetty.util.component.Dumpable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cometd.server.http.AbstractHttpTransport
AbstractHttpTransport.HttpScheduler, AbstractHttpTransport.WriterNested classes/interfaces inherited from class org.cometd.server.AbstractServerTransport
AbstractServerTransport.SchedulerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer -
Field Summary
FieldsFields inherited from class org.cometd.server.http.AbstractHttpTransport
BROWSER_COOKIE_DOMAIN_OPTION, BROWSER_COOKIE_HTTP_ONLY_OPTION, BROWSER_COOKIE_MAX_AGE_OPTION, BROWSER_COOKIE_NAME_OPTION, BROWSER_COOKIE_PARTITIONED_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_OPTIONFields inherited from class org.cometd.server.AbstractServerTransport
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_OPTIONFields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(CometDRequest request) intprotected voidhandle(TransportContext context) voidinit()Initializes the transport, resolving default and direct options.protected voidwriteBegin(CometDResponse.Output output, org.cometd.bayeux.Promise<Void> promise) protected voidwriteEnd(CometDResponse.Output output, org.cometd.bayeux.Promise<Void> promise) protected voidwritePrepare(TransportContext context, org.cometd.bayeux.Promise<Void> promise) Methods inherited from class org.cometd.server.http.AbstractHttpTransport
decBrowserId, find, findBrowserId, findCurrentSessions, findSession, flush, getBrowserCookieDomain, getBrowserCookieMaxAge, getBrowserCookieName, getBrowserCookiePath, getBrowserCookieSameSite, getDuplicateMetaConnectHttpResponseCode, getMultiSessionInterval, handle, handleMessage, incBrowserId, isBrowserCookieHttpOnly, isBrowserCookiePartitioned, isBrowserCookieSecure, isHTTP2, newBrowserCookie, newHttpScheduler, processMessages, resume, setBrowserId, suspend, sweep, toJSONBytes, write, writeComplete, writeMessageMethods inherited from class org.cometd.server.AbstractServerTransport
allowMessageDeliveryDuringHandshake, destroy, dump, getBayeuxServer, getInterval, getJSONContextServer, getMaxInterval, getMaxLazyTimeout, getMaxMessageSize, getTimeout, isAllowMessageDeliveryDuringHandshake, isHandshakeReconnect, isMetaConnectDeliveryOnly, newMetaConnectCycle, parseMessages, processReply, scheduleExpiration, setAllowMessageDeliveryDuringHandshake, setHandshakeReconnect, setInterval, setMaxInterval, setMaxLazyTimeout, setMaxMessageSize, setMetaConnectDeliveryOnly, setTimeout, toJSON, toStringMethods inherited from class org.cometd.common.AbstractTransport
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump, dumpSelfMethods inherited from interface org.cometd.bayeux.Transport
getName, getOption, getOptionNames, getOptionPrefix
-
Field Details
-
NAME
- See Also:
-
CALLBACK_PARAMETER_OPTION
- See Also:
-
CALLBACK_PARAMETER_MAX_LENGTH_OPTION
- See Also:
-
-
Constructor Details
-
JSONPHttpTransport
-
-
Method Details
-
init
public void init()Description copied from class:AbstractServerTransportInitializes the transport, resolving default and direct options.- Overrides:
initin classAbstractHttpTransport
-
getCallbackParameter
-
getCallbackMaxLength
public int getCallbackMaxLength() -
accept
- Specified by:
acceptin classAbstractHttpTransport
-
handle
- Specified by:
handlein classAbstractHttpTransport
-
writePrepare
- Overrides:
writePreparein classAbstractHttpTransport
-
writeBegin
- Overrides:
writeBeginin classAbstractHttpTransport
-
writeEnd
- Overrides:
writeEndin classAbstractHttpTransport
-