org.fusesource.restygwt.example.client.dispatcher
Class UnauthorizedCallbackFilter

java.lang.Object
  extended by org.fusesource.restygwt.example.client.dispatcher.UnauthorizedCallbackFilter
All Implemented Interfaces:
CallbackFilter

public class UnauthorizedCallbackFilter
extends Object
implements CallbackFilter


Constructor Summary
UnauthorizedCallbackFilter()
           
 
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
 

Constructor Detail

UnauthorizedCallbackFilter

public UnauthorizedCallbackFilter()
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.