public class BayeuxServerInstance extends Object implements org.cometd.bayeux.server.BayeuxServer
BayeuxServer
instance for a particular request.org.cometd.bayeux.server.BayeuxServer.BayeuxServerListener, org.cometd.bayeux.server.BayeuxServer.ChannelListener, org.cometd.bayeux.server.BayeuxServer.Extension, org.cometd.bayeux.server.BayeuxServer.SessionListener, org.cometd.bayeux.server.BayeuxServer.SubscriptionListener
Constructor and Description |
---|
BayeuxServerInstance(BayeuxServerImpl server,
org.cometd.bayeux.server.ServerSession session)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
addExtension(org.cometd.bayeux.server.BayeuxServer.Extension extension) |
void |
addListener(org.cometd.bayeux.server.BayeuxServer.BayeuxServerListener listener) |
boolean |
createIfAbsent(String channelId,
org.cometd.bayeux.server.ConfigurableServerChannel.Initializer... initializers) |
List<String> |
getAllowedTransports() |
org.cometd.bayeux.server.ServerChannel |
getChannel(String channelId) |
List<org.cometd.bayeux.server.ServerChannel> |
getChannels() |
org.cometd.bayeux.server.BayeuxContext |
getContext() |
org.cometd.bayeux.Transport |
getCurrentTransport() |
List<org.cometd.bayeux.server.BayeuxServer.Extension> |
getExtensions() |
Set<String> |
getKnownTransportNames() |
Object |
getOption(String qualifiedName) |
Set<String> |
getOptionNames() |
org.cometd.bayeux.server.SecurityPolicy |
getSecurityPolicy() |
org.cometd.bayeux.server.ServerSession |
getSession(String clientId) |
List<org.cometd.bayeux.server.ServerSession> |
getSessions() |
org.cometd.bayeux.Transport |
getTransport(String transport) |
org.cometd.bayeux.server.LocalSession |
newLocalSession(String idHint) |
org.cometd.bayeux.server.ServerMessage.Mutable |
newMessage() |
void |
removeExtension(org.cometd.bayeux.server.BayeuxServer.Extension extension) |
void |
removeListener(org.cometd.bayeux.server.BayeuxServer.BayeuxServerListener listener) |
void |
setOption(String qualifiedName,
Object value) |
void |
setSecurityPolicy(org.cometd.bayeux.server.SecurityPolicy securityPolicy) |
public BayeuxServerInstance(BayeuxServerImpl server, org.cometd.bayeux.server.ServerSession session)
server
- BayeuxServerImpl
.session
- ServerSession
for this instance.public org.cometd.bayeux.Transport getCurrentTransport()
getCurrentTransport
in interface org.cometd.bayeux.server.BayeuxServer
public org.cometd.bayeux.server.BayeuxContext getContext()
getContext
in interface org.cometd.bayeux.server.BayeuxServer
public boolean createIfAbsent(String channelId, org.cometd.bayeux.server.ConfigurableServerChannel.Initializer... initializers)
createIfAbsent
in interface org.cometd.bayeux.server.BayeuxServer
public org.cometd.bayeux.server.ServerChannel getChannel(String channelId)
getChannel
in interface org.cometd.bayeux.server.BayeuxServer
public List<org.cometd.bayeux.server.ServerChannel> getChannels()
getChannels
in interface org.cometd.bayeux.server.BayeuxServer
public org.cometd.bayeux.server.ServerSession getSession(String clientId)
getSession
in interface org.cometd.bayeux.server.BayeuxServer
public List<org.cometd.bayeux.server.ServerSession> getSessions()
getSessions
in interface org.cometd.bayeux.server.BayeuxServer
public org.cometd.bayeux.server.LocalSession newLocalSession(String idHint)
newLocalSession
in interface org.cometd.bayeux.server.BayeuxServer
public org.cometd.bayeux.server.ServerMessage.Mutable newMessage()
newMessage
in interface org.cometd.bayeux.server.BayeuxServer
public void addListener(org.cometd.bayeux.server.BayeuxServer.BayeuxServerListener listener)
addListener
in interface org.cometd.bayeux.server.BayeuxServer
public void removeListener(org.cometd.bayeux.server.BayeuxServer.BayeuxServerListener listener)
removeListener
in interface org.cometd.bayeux.server.BayeuxServer
public Set<String> getKnownTransportNames()
getKnownTransportNames
in interface org.cometd.bayeux.Bayeux
public org.cometd.bayeux.Transport getTransport(String transport)
getTransport
in interface org.cometd.bayeux.Bayeux
public List<String> getAllowedTransports()
getAllowedTransports
in interface org.cometd.bayeux.Bayeux
public Object getOption(String qualifiedName)
getOption
in interface org.cometd.bayeux.Bayeux
public void setOption(String qualifiedName, Object value)
setOption
in interface org.cometd.bayeux.Bayeux
public Set<String> getOptionNames()
getOptionNames
in interface org.cometd.bayeux.Bayeux
public void addExtension(org.cometd.bayeux.server.BayeuxServer.Extension extension)
addExtension
in interface org.cometd.bayeux.server.BayeuxServer
public void removeExtension(org.cometd.bayeux.server.BayeuxServer.Extension extension)
removeExtension
in interface org.cometd.bayeux.server.BayeuxServer
public List<org.cometd.bayeux.server.BayeuxServer.Extension> getExtensions()
getExtensions
in interface org.cometd.bayeux.server.BayeuxServer
public org.cometd.bayeux.server.SecurityPolicy getSecurityPolicy()
getSecurityPolicy
in interface org.cometd.bayeux.server.BayeuxServer
public void setSecurityPolicy(org.cometd.bayeux.server.SecurityPolicy securityPolicy)
setSecurityPolicy
in interface org.cometd.bayeux.server.BayeuxServer
Copyright © 2005–2016. All rights reserved.