Interface BayeuxServer

All Superinterfaces:
All Known Implementing Classes:

public interface BayeuxServer extends Bayeux

The server-side Bayeux interface.

An instance of the BayeuxServer interface is available to web applications via the ""org.cometd.bayeux"" attribute of the javax.servlet.ServletContext.

The BayeuxServer APIs give access to the ServerSessions via the getSession(String) method. It also allows new LocalSession to be created within the server using the newLocalSession(String) method.

ServerChannel instances may be accessed via the getChannel(String) method, but the server has no direct relationship with ClientSessionChannels or ClientSession.

If subscription semantics is required, then the newLocalSession(String) method should be used to create a LocalSession that can subscribe and publish like a client-side Bayeux session.