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