org.fusesource.restygwt.client.callback
Class XSRFTokenCallbackFilter
java.lang.Object
org.fusesource.restygwt.client.callback.XSRFTokenCallbackFilter
- All Implemented Interfaces:
- CallbackFilter
public class XSRFTokenCallbackFilter
- extends Object
- implements CallbackFilter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xsrf
protected XSRFToken xsrf
XSRFTokenCallbackFilter
public XSRFTokenCallbackFilter(XSRFToken xsrf)
filter
public RequestCallback filter(Method method,
Response response,
RequestCallback callback)
- Description copied from interface:
CallbackFilter
- main filter method for a callbackfilter.
pattern is a chain of responsibility. in contrast to dispatcherfilter,
each callbackfilter will be called for sure. this comes due to the fact
that a dispatcherfilter might want to stop a request (e.g. by caching).
whereas a callbackfilter should not stop the processing of other callback-
filters, there seems to be no good reason for doing this.
- Specified by:
filter in interface CallbackFilter
- Returns:
- continue chain or not
Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.