public abstract class RestApiModule extends FactoryModule
RestView
implementations.Modifier and Type | Class and Description |
---|---|
static class |
RestApiModule.ChildCollectionBinder<P extends RestResource> |
static class |
RestApiModule.ModifyViewBinder<P extends RestResource> |
static class |
RestApiModule.ReadViewBinder<P extends RestResource> |
Modifier and Type | Field and Description |
---|---|
protected static String |
DELETE |
protected static String |
GET |
protected static String |
POST |
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> |
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> |
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> |
put(com.google.inject.TypeLiteral<RestView<R>> viewType) |
protected <R extends RestResource> |
put(com.google.inject.TypeLiteral<RestView<R>> viewType,
String name) |
protected <R extends RestResource> |
view(com.google.inject.TypeLiteral<RestView<R>> viewType,
String method,
String name) |
factory
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected static final String GET
protected static final String PUT
protected static final String DELETE
protected static final String POST
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.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)
protected <R extends RestResource> com.google.inject.binder.LinkedBindingBuilder<RestView<R>> view(com.google.inject.TypeLiteral<RestView<R>> viewType, String method, String name)