org.cometd
Interface DataFilter

All Known Implementing Classes:
JSONDataFilter, NoMarkupFilter, NoScriptsFilter, RegexFilter

public interface DataFilter

Data filters are used to transform data as it is sent to a Channel.

Version:
$Revision: 686 $ $Date: 2009-07-03 11:07:24 +0200 (Fri, 03 Jul 2009) $

Method Summary
 java.lang.Object filter(Client from, Channel channel, java.lang.Object data)
           
 

Method Detail

filter

java.lang.Object filter(Client from,
                        Channel channel,
                        java.lang.Object data)
                        throws java.lang.IllegalStateException
Parameters:
from - the Client that sends the data
channel - the channel the data is being sent to
data - the data being sent
Returns:
the transformed data
Throws:
java.lang.IllegalStateException - If the message should be aborted


Copyright © 2011 Dojo Foundation. All Rights Reserved.