org.fusesource.restygwt.client.dispatcher
Class XSRFTokenDispatcherFilter

java.lang.Object
  extended by org.fusesource.restygwt.client.dispatcher.XSRFTokenDispatcherFilter
All Implemented Interfaces:
DispatcherFilter

public class XSRFTokenDispatcherFilter
extends Object
implements DispatcherFilter


Constructor Summary
XSRFTokenDispatcherFilter(XSRFToken xsrf)
           
 
Method Summary
 boolean filter(Method method, RequestBuilder builder)
          main filter method for a dispatcherfilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSRFTokenDispatcherFilter

public XSRFTokenDispatcherFilter(XSRFToken xsrf)
Method Detail

filter

public boolean filter(Method method,
                      RequestBuilder builder)
Description copied from interface: DispatcherFilter
main filter method for a dispatcherfilter. pattern is a chain of responsibility. if you want the chain to continue, return ``true``, ``false`` otherwise. if a ``DispatcherFilterDispatcherFilter`` returns ``false`` it is respnsible to trigger the onResponse() method of the callback on its own. otherwise there will never return any response to the origin caller. this will be necessary in caching case for example. if we have a caching dispatcherfilter, we will have - the necessarity to break the chain - and the necessarity to call the ``onResponse``

Specified by:
filter in interface DispatcherFilter
Returns:
continue chain or not


Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.