org.apache.cometd.bayeux
Interface DataFilter
public interface DataFilter
Data Filter
Data filters are used to transform data as it is sent to a Channel.
Messages are filtered as the message is published to a channel, invoking the
Channel.publish(Message)
method.
This method gets invoked in two different scenarios, the first being when a message is received from
a remote client, and the Bayeux implementation invokes the publish method directly.
The second scenario is when a local client invokes Channel.publish(Message)
directly in the local JVM.
- Author:
- Greg Wilkins, Filip Hanik
Method Summary |
void |
filter(Message data)
Runs a message through the filter. |
filter
void filter(Message data)
- Runs a message through the filter. Filtering can only modify an existing object, it can not replace it.
- Parameters:
data
- Message - the message to be filtered, may not be null
Copyright ? 2000-2008 Apache Software Foundation. All Rights Reserved.