org.fusesource.restygwt.client.callback
Class XSRFTokenCallbackFilter

java.lang.Object
  extended by org.fusesource.restygwt.client.callback.XSRFTokenCallbackFilter
All Implemented Interfaces:
CallbackFilter

public class XSRFTokenCallbackFilter
extends Object
implements CallbackFilter


Field Summary
protected  XSRFToken xsrf
           
 
Constructor Summary
XSRFTokenCallbackFilter(XSRFToken xsrf)
           
 
Method Summary
 RequestCallback filter(Method method, Response response, RequestCallback callback)
          main filter method for a callbackfilter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsrf

protected XSRFToken xsrf
Constructor Detail

XSRFTokenCallbackFilter

public XSRFTokenCallbackFilter(XSRFToken xsrf)
Method Detail

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.