Class DataFilterMessageListener
java.lang.Object
org.cometd.server.filter.DataFilterMessageListener
- All Implemented Interfaces:
EventListener
,Bayeux.BayeuxListener
,ConfigurableServerChannel.ServerChannelListener
,ServerChannel.MessageListener
A MessageListener that applies DataFilters to the received messages.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cometd.bayeux.server.ConfigurableServerChannel.ServerChannelListener
ConfigurableServerChannel.ServerChannelListener.Weak
-
Constructor Summary
ConstructorDescriptionDataFilterMessageListener
(BayeuxServer bayeux, DataFilter... filters) DataFilterMessageListener
(DataFilter... filters) -
Method Summary
Modifier and TypeMethodDescriptionboolean
onMessage
(ServerSession from, ServerChannel channel, ServerMessage.Mutable message) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cometd.bayeux.server.ServerChannel.MessageListener
onMessage
-
Constructor Details
-
DataFilterMessageListener
-
DataFilterMessageListener
-
-
Method Details
-
onMessage
Description copied from interface:ServerChannel.MessageListener
Blocking version of
ServerChannel.MessageListener.onMessage(ServerSession, ServerChannel, ServerMessage.Mutable, Promise)
.- Specified by:
onMessage
in interfaceServerChannel.MessageListener
- Parameters:
from
- the session that publishes the messagechannel
- the channel the message is published tomessage
- the message to be published- Returns:
- whether the message processing should continue
-