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

java.lang.Object
  extended by org.fusesource.restygwt.example.client.dispatcher.DispatcherFactory

public class DispatcherFactory
extends Object

this factory can be used to create a Dispatcher which can be used as dispatcher Option on the RestService interface.

 public class RestfulRetryingDispatcherSingleton implements Dispatcher{

   public static Dispatcher INSTANCE = new DispatcherFactory().restfulCachingDispatcher();

   // do not allow concrete instances of this class
   private RestfulRetryingDispatcherSingleton(){
     throw new Error("never called");
   }

   public Request send(Method method, RequestBuilder builder) throws RequestException {
     return null;   // dummy
   }
 }
 

Author:
kristian

Field Summary
static XSRFToken xsrf
           
 
Constructor Summary
DispatcherFactory()
           
 
Method Summary
 FilterawareDispatcher cachingDispatcher()
           
 FilterawareDispatcher cachingXSRFProtectionDispatcher()
           
 FilterawareDispatcher restfulCachingDispatcher()
           
 FilterawareDispatcher restfulCachingXSRFProtectionDispatcher()
           
 FilterawareDispatcher restfulRetryingCachingDispatcher()
           
 FilterawareDispatcher restfulRetryingCachingXSRFProtectionDispatcher()
           
 FilterawareDispatcher retryingCachingDispatcher()
           
 FilterawareDispatcher retryingCachingXSRFProtectionDispatcher()
           
 FilterawareDispatcher retryingDispatcher()
           
 FilterawareDispatcher xsrfProtectionDispatcher()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsrf

public static final XSRFToken xsrf
Constructor Detail

DispatcherFactory

public DispatcherFactory()
Method Detail

xsrfProtectionDispatcher

public FilterawareDispatcher xsrfProtectionDispatcher()

cachingDispatcher

public FilterawareDispatcher cachingDispatcher()

cachingXSRFProtectionDispatcher

public FilterawareDispatcher cachingXSRFProtectionDispatcher()

retryingDispatcher

public FilterawareDispatcher retryingDispatcher()

retryingCachingDispatcher

public FilterawareDispatcher retryingCachingDispatcher()

retryingCachingXSRFProtectionDispatcher

public FilterawareDispatcher retryingCachingXSRFProtectionDispatcher()

restfulCachingDispatcher

public FilterawareDispatcher restfulCachingDispatcher()

restfulCachingXSRFProtectionDispatcher

public FilterawareDispatcher restfulCachingXSRFProtectionDispatcher()

restfulRetryingCachingDispatcher

public FilterawareDispatcher restfulRetryingCachingDispatcher()

restfulRetryingCachingXSRFProtectionDispatcher

public FilterawareDispatcher restfulRetryingCachingXSRFProtectionDispatcher()


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