org.fusesource.restygwt.example.client.dispatcher
Class DispatcherFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xsrf
public static final XSRFToken xsrf
DispatcherFactory
public DispatcherFactory()
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.