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 |
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 |
static String |
THREAD_POOL_MAX_SIZE |
_logger, INTERVAL_OPTION, JSON_CONTEXT_OPTION, MAX_INTERVAL_OPTION, MAX_LAZY_TIMEOUT_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() |
Executor |
getExecutor() |
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 Executor |
newExecutor() |
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) |
getAdvice, getBayeux, getInterval, getMaxInterval, getMaxLazyTimeout, getTimeout, isMetaConnectDeliveryOnly, parseMessages, parseMessages, setInterval, setMaxInterval, setMaxLazyTimeout, setMetaConnectDeliveryOnly, setTimeout, sweep, toJSONBytesgetName, getOption, getOption, getOption, getOption, getOption, getOptionNames, getOptionPrefix, setOption, setOptionPrefixpublic 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 THREAD_POOL_MAX_SIZE
public static final String COMETD_URL_MAPPING
public static final String REQUIRE_HANDSHAKE_PER_CONNECTION_OPTION
protected AbstractWebSocketTransport(BayeuxServerImpl bayeux)
public void init()
init in class AbstractServerTransportpublic void destroy()
destroy in class AbstractServerTransportprotected Executor newExecutor()
protected ScheduledExecutorService newScheduledExecutor()
public Executor getExecutor()
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–2015 Dojo Foundation. All rights reserved.