org.fusesource.restygwt.client.dispatcher
Class XSRFTokenDispatcherFilter
java.lang.Object
org.fusesource.restygwt.client.dispatcher.XSRFTokenDispatcherFilter
- All Implemented Interfaces:
- DispatcherFilter
public class XSRFTokenDispatcherFilter
- extends Object
- implements DispatcherFilter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSRFTokenDispatcherFilter
public XSRFTokenDispatcherFilter(XSRFToken xsrf)
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.