Class RestApiModule
java.lang.Object
com.google.inject.AbstractModule
com.google.gerrit.extensions.config.FactoryModule
com.google.gerrit.extensions.restapi.RestApiModule
- All Implemented Interfaces:
- com.google.inject.Module
- Direct Known Subclasses:
- AccessRestApiModule,- AccountRestApiModule,- ChangeRestApiModule,- ConfigRestApiModule,- GroupRestApiModule,- PluginRestApiModule,- ProjectRestApiModule,- ProjectRestApiModule.BatchModule,- RestCacheAdminModule
Guice DSL for binding 
RestView implementations.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classRestApiModule.CreateViewBinder<C extends RestResource>static classRestApiModule.DeleteViewBinder<C extends RestResource>static classRestApiModule.ModifyViewBinder<P extends RestResource>static classRestApiModule.ReadViewBinder<P extends RestResource>static class
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected <P extends RestResource>
 RestApiModule.ChildCollectionBinder<P>protected <R extends RestResource>
 RestApiModule.CreateViewBinder<R>protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>protected <R extends RestResource>
 RestApiModule.DeleteViewBinder<R>deleteMissing(com.google.inject.TypeLiteral<RestView<R>> viewType) protected <R extends RestResource>
 RestApiModule.RestCollectionViewBinder<R>deleteOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType) Creates a binder that allows to bind a REST view to handleDELETEon the REST collection of the provided view type.protected <R extends RestResource>
 RestApiModule.ReadViewBinder<R>protected <R extends RestResource>
 RestApiModule.ReadViewBinder<R>protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>protected <R extends RestResource>
 RestApiModule.RestCollectionViewBinder<R>postOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType) protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>protected <R extends RestResource>
 RestApiModule.ModifyViewBinder<R>Methods inherited from class com.google.gerrit.extensions.config.FactoryModulefactoryMethods inherited from class com.google.inject.AbstractModuleaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
- 
Field Details- 
GET- See Also:
 
- 
PUT- See Also:
 
- 
DELETE- See Also:
 
- 
POST- See Also:
 
- 
CREATE- See Also:
 
- 
DELETE_MISSING- See Also:
 
- 
DELETE_ON_COLLECTION- See Also:
 
- 
POST_ON_COLLECTION- See Also:
 
 
- 
- 
Constructor Details- 
RestApiModulepublic RestApiModule()
 
- 
- 
Method Details- 
getprotected <R extends RestResource> RestApiModule.ReadViewBinder<R> get(com.google.inject.TypeLiteral<RestView<R>> viewType) 
- 
putprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> put(com.google.inject.TypeLiteral<RestView<R>> viewType) 
- 
postprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> post(com.google.inject.TypeLiteral<RestView<R>> viewType) 
- 
deleteprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> delete(com.google.inject.TypeLiteral<RestView<R>> viewType) 
- 
postOnCollectionprotected <R extends RestResource> RestApiModule.RestCollectionViewBinder<R> postOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType) 
- 
deleteOnCollectionprotected <R extends RestResource> RestApiModule.RestCollectionViewBinder<R> deleteOnCollection(com.google.inject.TypeLiteral<RestView<R>> viewType) Creates a binder that allows to bind a REST view to handleDELETEon the REST collection of the provided view type.This binding is ignored if the provided view type belongs to a root collection. - Parameters:
- viewType- the type of the resources in the REST collection on which- DELETEshould be handled
- Returns:
- binder that allows to bind an implementation for the REST view that should handle
     DELETEon the REST collection of the provided view type
 
- 
createprotected <R extends RestResource> RestApiModule.CreateViewBinder<R> create(com.google.inject.TypeLiteral<RestView<R>> viewType) 
- 
deleteMissingprotected <R extends RestResource> RestApiModule.DeleteViewBinder<R> deleteMissing(com.google.inject.TypeLiteral<RestView<R>> viewType) 
- 
getprotected <R extends RestResource> RestApiModule.ReadViewBinder<R> get(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
- 
putprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> put(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
- 
postprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> post(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
- 
deleteprotected <R extends RestResource> RestApiModule.ModifyViewBinder<R> delete(com.google.inject.TypeLiteral<RestView<R>> viewType, String name) 
- 
childprotected <P extends RestResource> RestApiModule.ChildCollectionBinder<P> child(com.google.inject.TypeLiteral<RestView<P>> type, String name) 
 
-