public class RestDispatchAsyncModule extends AbstractDispatchAsyncModule
AbstractDispatchAsyncModule
that uses REST calls.
This gin module provides provides access to the RestDispatch
singleton, which is used to make calls to the
server over HTTP. This module requires:
You must manually bind @RestApplicationPath
to point
to your server API root path.Modifier and Type | Class and Description |
---|---|
static class |
RestDispatchAsyncModule.Builder |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XSRF_NAME |
Constructor and Description |
---|
RestDispatchAsyncModule()
Creates this module using the default values as specified by
RestDispatchAsyncModuleBuilder . |
Modifier and Type | Method and Description |
---|---|
protected void |
configureDispatch()
Override this method to perform additional bindings in your implementation of
AbstractDispatchAsyncModule . |
configure
bind, bind, bind, bindConstant, binder, configure, install, requestStaticInjection
public static final String DEFAULT_XSRF_NAME
public RestDispatchAsyncModule()
RestDispatchAsyncModuleBuilder
.protected void configureDispatch()
AbstractDispatchAsyncModule
AbstractDispatchAsyncModule
.configureDispatch
in class AbstractDispatchAsyncModule
Copyright © 2010–2014 Arcbees. All rights reserved.