public abstract class AbstractWebSocketTransport extends AbstractServerTransport
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 |
MESSAGES_PER_FRAME_OPTION |
static String |
NAME |
static String |
PREFIX |
static String |
PROTOCOL_OPTION |
static String |
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
Modifier | Constructor and Description |
---|---|
protected |
AbstractWebSocketTransport(BayeuxServerImpl bayeux) |
Modifier and Type | Method and Description |
---|---|
int |
getMessagesPerFrame() |
String |
getProtocol() |
void |
init()
Initializes the transport, resolving default and direct options.
|
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) |
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 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 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()
AbstractServerTransport
init
in class AbstractServerTransport
public String getProtocol()
public int getMessagesPerFrame()
public boolean isRequireHandshakePerConnection()
protected void onClose(int code, String reason)
protected String toJSON(ServerMessage message)
toJSON
in class AbstractServerTransport
protected void writeComplete(AbstractWebSocketEndPoint.Context context, List<ServerMessage> messages)
Copyright © 2008–2024 The CometD Project. All rights reserved.