public class SpringContinuationBayeux extends org.mortbay.cometd.continuation.ContinuationBayeux implements ServletContextAware
ContinuationBayeux
that allows
full initialization of bayeux outside the ContinuationCometdServlet
.org.mortbay.cometd.AbstractBayeux.ConnectHandler, org.mortbay.cometd.AbstractBayeux.DefaultPolicy, org.mortbay.cometd.AbstractBayeux.DisconnectHandler, org.mortbay.cometd.AbstractBayeux.Handler, org.mortbay.cometd.AbstractBayeux.HandshakeHandler, org.mortbay.cometd.AbstractBayeux.MetaPublishHandler, org.mortbay.cometd.AbstractBayeux.PingHandler, org.mortbay.cometd.AbstractBayeux.PublishHandler, org.mortbay.cometd.AbstractBayeux.ServiceChannel, org.mortbay.cometd.AbstractBayeux.SubscribeHandler, org.mortbay.cometd.AbstractBayeux.UnsubscribeHandler
Modifier and Type | Field and Description |
---|---|
protected String |
filters |
protected long |
maxInterval |
protected ServletContext |
servletContext |
_advice, _adviceVersion, _browser2client, _directDeliver, _extensions, _initialized, _interval, _JSONCommented, _logLevel, _maxInterval, _metaPublishHandler, _multiFrameAdvice, _multiFrameInterval, _publishHandler, _request, _requestAvailable, _securityPolicy, _transports, _unknownAdvice, META_CLIENT_ID, META_CONNECT_ID, META_DISCONNECT_ID, META_HANDSHAKE_ID, META_ID, META_PING_ID, META_STATUS_ID, META_SUBSCRIBE_ID, META_UNSUBSCRIBE_ID
ADVICE_FIELD, CHANNEL_FIELD, CLIENT_FIELD, CONNECTION_TYPE_FIELD, DATA_FIELD, DOJOX_COMETD_BAYEUX, ERROR_FIELD, EXT_FIELD, HANDSHAKE_RESPONSE, ID_FIELD, INTERVAL_FIELD, JSON_COMMENT_FILTERED_FIELD, JSON_CONTENT_TYPE, JSONP_DEFAULT_NAME, JSONP_PARAMETER, MESSAGE_PARAMETER, META, META_CLIENT, META_CONNECT, META_DISCONNECT, META_HANDSHAKE, META_PING, META_SLASH, META_STATUS, META_SUBSCRIBE, META_UNSUBSCRIBE, MIN_VERSION_FIELD, NONE_RESPONSE, RECONNECT_FIELD, RETRY_RESPONSE, SERVICE, SERVICE_SLASH, SUBSCRIPTION_FIELD, SUCCESSFUL_FIELD, SUPP_CONNECTION_TYPE_FIELD, TIMESTAMP_FIELD, TRANSPORT_CALLBACK_POLL, TRANSPORT_FIELD, TRANSPORT_FLASH, TRANSPORT_IFRAME, TRANSPORT_LONG_POLL, VERSION_FIELD
Constructor and Description |
---|
SpringContinuationBayeux() |
Modifier and Type | Method and Description |
---|---|
String |
getFilters()
Gets filters as JSON objects.
|
void |
init()
Initializes bayeux.
|
void |
setFilters(String filters)
Sets filters as JSON objects.
|
void |
setMaxInterval(long maxInterval)
Sets max interval.
|
void |
setServletContext(ServletContext servletContext)
Implementation of
ServletContextAware . |
cancelTimeout, destroy, initialize, newRemoteClient
addClient, addExtension, doPublish, getAdvice, getChannel, getChannel, getChannel, getChannelCount, getChannelId, getChannels, getClient, getClientCount, getClientIDs, getClients, getCurrentRequest, getExtensions, getInterval, getLogLevel, getMaxInterval, getMultiFrameInterval, getSecurityPolicy, getTimeout, handle, hasChannel, hasClient, isDirectDeliver, isInitialized, isJSONCommented, isLogDebug, isLogInfo, isRequestAvailable, logDebug, logDebug, logInfo, logWarn, logWarn, newClient, newClientId, newTransport, removeChannel, removeChannel, removeClient, removeExtension, setAdvice, setDirectDeliver, setInterval, setJSONCommented, setLogLevel, setMultiFrameInterval, setRequestAvailable, setSecurityPolicy, setTimeout
protected ServletContext servletContext
protected String filters
protected long maxInterval
public void setServletContext(ServletContext servletContext)
ServletContextAware
.setServletContext
in interface ServletContextAware
public String getFilters()
public void setFilters(String filters)
public void setMaxInterval(long maxInterval)
Sets max interval.
Note: Overriding parent because it sets value on internal instance before initialization.
setMaxInterval
in class org.mortbay.cometd.continuation.ContinuationBayeux
@PostConstruct public void init()
Copyright © 2008-2014 Spring by Example. All Rights Reserved.