org.fusesource.restygwt.client.callback
Interface CallbackFilter

All Known Implementing Classes:
CachingCallbackFilter, ModelChangeCallbackFilter, RestfulCachingCallbackFilter, UnauthorizedCallbackFilter, XSRFTokenCallbackFilter

public interface CallbackFilter


Method Summary
 RequestCallback filter(Method method, Response response, RequestCallback callback)
          main filter method for a callbackfilter.
 

Method Detail

filter

RequestCallback filter(Method method,
                       Response response,
                       RequestCallback callback)
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.

Returns:
continue chain or not


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