Class AbstractWebSocketTransport
java.lang.Object
org.cometd.common.AbstractTransport
org.cometd.server.AbstractServerTransport
org.cometd.server.websocket.common.AbstractWebSocketTransport
- 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.AbstractServerTransport
AbstractServerTransport.SchedulerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptionintvoidinit()booleannormalizeURLMapping(String urlMapping) protected voidprotected StringtoJSON(ServerMessage message) protected voidwriteComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages) Methods inherited from class org.cometd.server.AbstractServerTransport
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, sweep, 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:
-
PREFIX
- See Also:
-
PROTOCOL_OPTION
- See Also:
-
MESSAGES_PER_FRAME_OPTION
- See Also:
-
BUFFER_SIZE_OPTION
- See Also:
-
IDLE_TIMEOUT_OPTION
- See Also:
-
COMETD_URL_MAPPING_OPTION
- See Also:
-
REQUIRE_HANDSHAKE_PER_CONNECTION_OPTION
- See Also:
-
ENABLE_EXTENSION_PREFIX_OPTION
- See Also:
-
-
Constructor Details
-
AbstractWebSocketTransport
-
-
Method Details
-
init
public void init()- Overrides:
initin classAbstractServerTransport
-
getProtocol
-
getMessagesPerFrame
public int getMessagesPerFrame() -
isRequireHandshakePerConnection
public boolean isRequireHandshakePerConnection() -
normalizeURLMapping
-
onClose
-
toJSON
- Overrides:
toJSONin classAbstractServerTransport
-
writeComplete
protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
-