Uses of Interface
org.cometd.bayeux.server.ServerChannel
Package
Description
-
Uses of ServerChannel in org.cometd.bayeux.server
Modifier and TypeMethodDescriptionBayeuxServer.createChannelIfAbsent
(String channelName, ConfigurableServerChannel.Initializer... initializers) Creates aServerChannel
and initializes it atomically if the channel does not exist, or returns it if it already exists.BayeuxServer.getChannels()
ServerSession.getSubscriptions()
Modifier and TypeMethodDescriptiondefault boolean
SecurityPolicy.canPublish
(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message) default void
SecurityPolicy.canPublish
(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message, Promise<Boolean> promise) Checks if a client can publish a message to a channel.default boolean
SecurityPolicy.canSubscribe
(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message) default void
SecurityPolicy.canSubscribe
(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message, Promise<Boolean> promise) Checks if a subscribe message from a client is allowed to subscribe to a channel.default void
BayeuxServer.ChannelListener.channelAdded
(ServerChannel channel) Callback invoked when aServerChannel
has been added to aBayeuxServer
object.default boolean
ServerChannel.MessageListener.onMessage
(ServerSession sender, ServerChannel channel, ServerMessage.Mutable message) default void
ServerChannel.MessageListener.onMessage
(ServerSession sender, ServerChannel channel, ServerMessage.Mutable message, Promise<Boolean> promise) Callback invoked when a message is being published.default void
BayeuxServer.SubscriptionListener.subscribed
(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when aServerSession
subscribes to aServerChannel
.default void
ServerChannel.SubscriptionListener.subscribed
(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when the givenServerSession
subscribes to the givenServerChannel
.default void
BayeuxServer.SubscriptionListener.unsubscribed
(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when aServerSession
unsubscribes from aServerChannel
.default void
ServerChannel.SubscriptionListener.unsubscribed
(ServerSession session, ServerChannel channel, ServerMessage message) Callback invoked when the givenServerSession
unsubscribes from the givenServerChannel
. -
Uses of ServerChannel in org.cometd.oort
Modifier and TypeMethodDescriptionboolean
Oort.CloudListener.onMessage
(ServerSession from, ServerChannel channel, ServerMessage.Mutable message) boolean
OortService.onMessage
(ServerSession from, ServerChannel channel, ServerMessage.Mutable message) -
Uses of ServerChannel in org.cometd.server
Modifier and TypeMethodDescriptionBayeuxServerImpl.createChannelIfAbsent
(String channelName, ConfigurableServerChannel.Initializer... initializers) BayeuxServerImpl.getChannels()
ServerSessionImpl.getSubscriptions()
Modifier and TypeMethodDescriptionboolean
DefaultSecurityPolicy.canPublish
(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message) boolean
DefaultSecurityPolicy.canSubscribe
(BayeuxServer server, ServerSession session, ServerChannel channel, ServerMessage message) -
Uses of ServerChannel in org.cometd.server.filter
Modifier and TypeMethodDescriptionDataFilter.filter
(ServerSession session, ServerChannel channel, Object data) Modifies the given message data.JSONDataFilter.filter
(ServerSession session, ServerChannel channel, Object data) protected Object
JSONDataFilter.filterArray
(ServerSession session, ServerChannel channel, Object array) protected Object
JSONDataFilter.filterBoolean
(ServerSession session, ServerChannel channel, Boolean bool) protected Object
JSONDataFilter.filterCollection
(ServerSession session, ServerChannel channel, Collection<Object> collection) protected Object
JSONDataFilter.filterList
(ServerSession session, ServerChannel channel, List<Object> list) protected Object
JSONDataFilter.filterMap
(ServerSession session, ServerChannel channel, Map<String, Object> map) protected Object
JSONDataFilter.filterNumber
(ServerSession session, ServerChannel channel, Number number) protected Object
JSONDataFilter.filterObject
(ServerSession session, ServerChannel channel, Object data) protected Object
JSONDataFilter.filterString
(ServerSession session, ServerChannel channel, String string) protected Object
NoMarkupFilter.filterString
(ServerSession session, ServerChannel channel, String string) protected Object
NoScriptsFilter.filterString
(ServerSession session, ServerChannel channel, String string) protected Object
RegexFilter.filterString
(ServerSession session, ServerChannel channel, String string) boolean
DataFilterMessageListener.onMessage
(ServerSession from, ServerChannel channel, ServerMessage.Mutable message)