public abstract class RestApiModule extends FactoryModule
RestView implementations.| Modifier and Type | Class and Description |
|---|---|
static class |
RestApiModule.ChildCollectionBinder<P extends RestResource> |
static class |
RestApiModule.CreateViewBinder<C extends RestResource> |
static class |
RestApiModule.DeleteViewBinder<C extends RestResource> |
static class |
RestApiModule.ModifyViewBinder<P extends RestResource> |
static class |
RestApiModule.ReadViewBinder<P extends RestResource> |
static class |
RestApiModule.RestCollectionViewBinder<C extends RestResource> |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CREATE |
protected static String |
DELETE |
protected static String |
DELETE_MISSING |
protected static String |
DELETE_ON_COLLECTION |
protected static String |
GET |
protected static String |
POST |
protected static String |
POST_ON_COLLECTION |
protected static String |
PUT |
| Constructor and Description |
|---|
RestApiModule() |
| Modifier and Type | Method and Description |
|---|---|
protected <P extends RestResource> |
child(com.google.inject.TypeLiteral<RestView<P>> type,
String name) |
protected <R extends RestResource> |
create(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
delete(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
delete(com.google.inject.TypeLiteral<RestView<R>> viewType,
String name) |
protected <R extends RestResource> |
deleteMissing(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
deleteOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType)
Creates a binder that allows to bind a REST view to handle
DELETE on the REST
collection of the provided view type. |
protected <R extends RestResource> |
get(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
get(com.google.inject.TypeLiteral<RestView<R>> viewType,
String name) |
protected <R extends RestResource> |
post(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
post(com.google.inject.TypeLiteral<RestView<R>> viewType,
String name) |
protected <R extends RestResource> |
postOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
put(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
put(com.google.inject.TypeLiteral<RestView<R>> viewType,
String name) |
factoryaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingprotected static final String GET
protected static final String PUT
protected static final String DELETE
protected static final String POST
protected static final String CREATE
protected static final String DELETE_MISSING
protected static final String DELETE_ON_COLLECTION
protected static final String POST_ON_COLLECTION
protected <R extends RestResource> RestApiModule.ReadViewBinder<R> get(com.google.inject.TypeLiteral<RestView<R>> viewType)
protected <R extends RestResource> RestApiModule.ModifyViewBinder<R> put(com.google.inject.TypeLiteral<RestView<R>> viewType)
protected <R extends RestResource> RestApiModule.ModifyViewBinder<R> post(com.google.inject.TypeLiteral<RestView<R>> viewType)
protected <R extends RestResource> RestApiModule.ModifyViewBinder<R> delete(com.google.inject.TypeLiteral<RestView<R>> viewType)
protected <R extends RestResource> RestApiModule.RestCollectionViewBinder<R> postOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType)
protected <R extends RestResource> RestApiModule.RestCollectionViewBinder<R> deleteOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType)
DELETE on the REST
collection of the provided view type.
This binding is ignored if the provided view type belongs to a root collection.
viewType - the type of the resources in the REST collection on which DELETE should
be handledDELETE on the REST collection of the provided view typeprotected <R extends RestResource> RestApiModule.CreateViewBinder<R> create(com.google.inject.TypeLiteral<RestView<R>> viewType)
protected <R extends RestResource> RestApiModule.DeleteViewBinder<R> deleteMissing(com.google.inject.TypeLiteral<RestView<R>> viewType)
protected <R extends RestResource> RestApiModule.ReadViewBinder<R> get(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)
protected <R extends RestResource> RestApiModule.ModifyViewBinder<R> put(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)
protected <R extends RestResource> RestApiModule.ModifyViewBinder<R> post(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)
protected <R extends RestResource> RestApiModule.ModifyViewBinder<R> delete(com.google.inject.TypeLiteral<RestView<R>> viewType, String name)
protected <P extends RestResource> RestApiModule.ChildCollectionBinder<P> child(com.google.inject.TypeLiteral<RestView<P>> type, String name)