public class JettyWebSocketTransport extends AbstractWebSocketTransport
AbstractServerTransport.Scheduler
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_OPTION
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 and Description |
---|
JettyWebSocketTransport(BayeuxServerImpl bayeux) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkOrigin(org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest request,
String origin) |
void |
init()
Initializes the transport, resolving default and direct options.
|
protected void |
modifyUpgrade(org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest request,
org.eclipse.jetty.websocket.servlet.ServletUpgradeResponse response) |
protected Object |
newWebSocketEndPoint(BayeuxContext bayeuxContext) |
getMessagesPerFrame, getProtocol, isRequireHandshakePerConnection, normalizeURLMapping, onClose, toJSON, writeComplete
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, toString
getName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, getOption, getOptionNames, getOptionPrefix
public JettyWebSocketTransport(BayeuxServerImpl bayeux)
public void init()
AbstractServerTransport
init
in class AbstractWebSocketTransport
protected Object newWebSocketEndPoint(BayeuxContext bayeuxContext)
protected void modifyUpgrade(org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest request, org.eclipse.jetty.websocket.servlet.ServletUpgradeResponse response)
protected boolean checkOrigin(org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest request, String origin)
Copyright © 2008–2024 The CometD Project. All rights reserved.