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
public abstract class AbstractWebSocketTransport extends AbstractServerTransport
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cometd.server.AbstractServerTransport
AbstractServerTransport.Scheduler
-
Field Summary
Fields Modifier and Type Field Description static String
BUFFER_SIZE_OPTION
static String
COMETD_URL_MAPPING_OPTION
static String
ENABLE_EXTENSION_PREFIX_OPTION
static String
IDLE_TIMEOUT_OPTION
static String
MESSAGES_PER_FRAME_OPTION
static String
NAME
static String
PREFIX
static String
PROTOCOL_OPTION
static String
REQUIRE_HANDSHAKE_PER_CONNECTION_OPTION
Fields inherited from class org.cometd.server.AbstractServerTransport
_logger, 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 Summary
Constructors Modifier Constructor Description protected
AbstractWebSocketTransport(BayeuxServerImpl bayeux)
-
Method Summary
Modifier and Type Method Description int
getMessagesPerFrame()
String
getProtocol()
void
init()
boolean
isRequireHandshakePerConnection()
protected List<String>
normalizeURLMapping(String urlMapping)
protected void
onClose(int code, String reason)
protected String
toJSON(ServerMessage message)
protected void
writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
Methods inherited from class org.cometd.server.AbstractServerTransport
allowMessageDeliveryDuringHandshake, destroy, dump, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getMaxMessageSize, getTimeout, isAllowMessageDeliveryDuringHandshake, isHandshakeReconnect, isMetaConnectDeliveryOnly, parseMessages, parseMessages, processReply, scheduleExpiration, setAllowMessageDeliveryDuringHandshake, setHandshakeReconnect, setInterval, setMaxInterval, setMaxLazyTimeout, setMaxMessageSize, setMetaConnectDeliveryOnly, setTimeout, sweep, toString
Methods inherited from class org.cometd.common.AbstractTransport
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
PREFIX
- See Also:
- Constant Field Values
-
PROTOCOL_OPTION
- See Also:
- Constant Field Values
-
MESSAGES_PER_FRAME_OPTION
- See Also:
- Constant Field Values
-
BUFFER_SIZE_OPTION
- See Also:
- Constant Field Values
-
IDLE_TIMEOUT_OPTION
- See Also:
- Constant Field Values
-
COMETD_URL_MAPPING_OPTION
- See Also:
- Constant Field Values
-
REQUIRE_HANDSHAKE_PER_CONNECTION_OPTION
- See Also:
- Constant Field Values
-
ENABLE_EXTENSION_PREFIX_OPTION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
init
public void init()- Overrides:
init
in classAbstractServerTransport
-
getProtocol
-
getMessagesPerFrame
public int getMessagesPerFrame() -
isRequireHandshakePerConnection
public boolean isRequireHandshakePerConnection() -
normalizeURLMapping
-
onClose
-
toJSON
- Overrides:
toJSON
in classAbstractServerTransport
-
writeComplete
protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
-