Class WebSocketTransport
java.lang.Object
org.cometd.common.AbstractTransport
org.cometd.server.AbstractServerTransport
org.cometd.server.websocket.common.AbstractWebSocketTransport
org.cometd.server.websocket.jakarta.WebSocketTransport
- All Implemented Interfaces:
ServerTransport, Transport, org.eclipse.jetty.util.component.Dumpable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractServerTransport
AbstractServerTransport.Scheduler, AbstractServerTransport.SchedulerCancelledExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer, org.eclipse.jetty.util.component.Dumpable.DumpAppendable -
Field Summary
Fields inherited from class AbstractWebSocketTransport
BUFFER_SIZE_OPTION, COMETD_URL_MAPPING_OPTION, ENABLE_EXTENSION_PREFIX_OPTION, IDLE_TIMEOUT_OPTION, MESSAGES_PER_FRAME_OPTION, NAME, PREFIX, PROTOCOL_OPTION, REQUIRE_HANDSHAKE_PER_CONNECTION_OPTIONFields inherited from class 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
LEGEND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckOrigin(String origin) voidinit()Initializes the transport, resolving default and direct options.protected voidmodifyHandshake(jakarta.websocket.server.HandshakeRequest request, jakarta.websocket.HandshakeResponse response) protected ObjectnewWebSocketEndPoint(BayeuxContext bayeuxContext) Methods inherited from class AbstractWebSocketTransport
getMessagesPerFrame, getProtocol, isRequireHandshakePerConnection, normalizeURLMapping, onClose, toJSON, writeCompleteMethods inherited from class 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, sweep, toStringMethods inherited from class AbstractTransport
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixMethods inherited from class 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 Transport
getName, getOption, getOptionNames, getOptionPrefix
-
Constructor Details
-
WebSocketTransport
-
-
Method Details
-
init
public void init()Description copied from class:AbstractServerTransportInitializes the transport, resolving default and direct options.- Overrides:
initin classAbstractWebSocketTransport
-
checkOrigin
-
modifyHandshake
protected void modifyHandshake(jakarta.websocket.server.HandshakeRequest request, jakarta.websocket.HandshakeResponse response) -
newWebSocketEndPoint
-