org.fusesource.restygwt.client.dispatcher
Interface DispatcherFilter

All Known Implementing Classes:
CachingDispatcherFilter, DefaultDispatcherFilter, RestfulCachingDispatcherFilter, XSRFTokenDispatcherFilter

public interface DispatcherFilter


Method Summary
 boolean filter(Method method, RequestBuilder builder)
          main filter method for a dispatcherfilter.
 

Method Detail

filter

boolean filter(Method method,
               RequestBuilder builder)
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``

Returns:
continue chain or not


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