public abstract class AbstractWebSocketTransport<S> extends AbstractServerTransport
| Modifier and Type | Class | Description |
|---|---|---|
protected class |
AbstractWebSocketTransport.AbstractWebSocketScheduler |
AbstractServerTransport.Scheduler| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
BUFFER_SIZE_OPTION |
|
static java.lang.String |
COMETD_URL_MAPPING_OPTION |
|
static java.lang.String |
ENABLE_EXTENSION_PREFIX_OPTION |
|
static java.lang.String |
IDLE_TIMEOUT_OPTION |
|
static java.lang.String |
MESSAGES_PER_FRAME_OPTION |
|
static java.lang.String |
NAME |
|
static java.lang.String |
PREFIX |
|
static java.lang.String |
PROTOCOL_OPTION |
|
static java.lang.String |
REQUIRE_HANDSHAKE_PER_CONNECTION_OPTION |
_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| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractWebSocketTransport(BayeuxServerImpl bayeux) |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
checkProtocol(java.util.List<java.lang.String> serverProtocols,
java.util.List<java.lang.String> clientProtocols) |
|
void |
destroy() |
|
org.cometd.bayeux.server.BayeuxContext |
getContext() |
|
int |
getMessagesPerFrame() |
|
java.lang.String |
getProtocol() |
|
java.util.concurrent.ScheduledExecutorService |
getScheduler() |
|
protected void |
handleException(S wsSession,
org.cometd.bayeux.server.ServerSession session,
java.lang.Throwable exception) |
|
protected void |
handleJSONParseException(S wsSession,
org.cometd.bayeux.server.ServerSession session,
java.lang.String json,
java.lang.Throwable exception) |
|
void |
init() |
|
protected java.util.concurrent.ScheduledExecutorService |
newScheduledExecutor() |
|
protected java.util.List<java.lang.String> |
normalizeURLMapping(java.lang.String urlMapping) |
|
protected void |
onClose(int code,
java.lang.String reason) |
|
protected abstract void |
send(S wsSession,
org.cometd.bayeux.server.ServerSession session,
java.lang.String data,
org.eclipse.jetty.util.Callback callback) |
allowMessageDeliveryDuringHandshake, dump, dump, getAdvice, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getMaxMessageSize, getTimeout, isAllowMessageDeliveryDuringHandshake, isHandshakeReconnect, isMetaConnectDeliveryOnly, parseMessages, parseMessages, processReply, setAllowMessageDeliveryDuringHandshake, setHandshakeReconnect, setInterval, setMaxInterval, setMaxLazyTimeout, setMaxMessageSize, setMetaConnectDeliveryOnly, setTimeout, sweep, toJSONBytes, toStringgetName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixpublic static final java.lang.String NAME
public static final java.lang.String PREFIX
public static final java.lang.String PROTOCOL_OPTION
public static final java.lang.String MESSAGES_PER_FRAME_OPTION
public static final java.lang.String BUFFER_SIZE_OPTION
public static final java.lang.String IDLE_TIMEOUT_OPTION
public static final java.lang.String COMETD_URL_MAPPING_OPTION
public static final java.lang.String REQUIRE_HANDSHAKE_PER_CONNECTION_OPTION
public static final java.lang.String ENABLE_EXTENSION_PREFIX_OPTION
protected AbstractWebSocketTransport(BayeuxServerImpl bayeux)
public void init()
init in class AbstractServerTransportpublic void destroy()
destroy in class AbstractServerTransportprotected java.util.concurrent.ScheduledExecutorService newScheduledExecutor()
public java.util.concurrent.ScheduledExecutorService getScheduler()
public java.lang.String getProtocol()
public int getMessagesPerFrame()
protected boolean checkProtocol(java.util.List<java.lang.String> serverProtocols,
java.util.List<java.lang.String> clientProtocols)
public org.cometd.bayeux.server.BayeuxContext getContext()
protected java.util.List<java.lang.String> normalizeURLMapping(java.lang.String urlMapping)
protected void handleJSONParseException(S wsSession, org.cometd.bayeux.server.ServerSession session, java.lang.String json, java.lang.Throwable exception)
protected void handleException(S wsSession, org.cometd.bayeux.server.ServerSession session, java.lang.Throwable exception)
protected abstract void send(S wsSession, org.cometd.bayeux.server.ServerSession session, java.lang.String data, org.eclipse.jetty.util.Callback callback)
protected void onClose(int code,
java.lang.String reason)
Copyright © 2008–2017 The CometD Project. All rights reserved.