Interface ExposureConfigurer
- All Known Implementing Classes:
ExposureConfiguration
public interface ExposureConfigurer
Configuration API to register filters to customize the supported HTTP methods by different kinds of resources.
- Since:
- 2.1
- Author:
- Oliver Gierke
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA filter to post-process the supported HTTP methods by aggregate resources (collection or item resource).static interfaceA filter to post-process the supported HTTP methods byAssociationresources. -
Method Summary
Modifier and TypeMethodDescriptionDisables the ability to create new item resources viaHttpMethod.PUT.Registers the givenExposureConfigurer.AssociationResourceHttpMethodsFilter.Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilterto be used for collection resources.Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilterto be used for item resources.
-
Method Details
-
withCollectionExposure
ExposureConfigurer withCollectionExposure(ExposureConfigurer.AggregateResourceHttpMethodsFilter filter) Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilterto be used for collection resources.- Parameters:
filter- must not be null.- Returns:
-
withItemExposure
Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilterto be used for item resources.- Parameters:
filter-- Returns:
-
withAssociationExposure
ExposureConfigurer withAssociationExposure(ExposureConfigurer.AssociationResourceHttpMethodsFilter filter) Registers the givenExposureConfigurer.AssociationResourceHttpMethodsFilter.- Parameters:
filter-- Returns:
-
disablePutForCreation
ExposureConfigurer disablePutForCreation()Disables the ability to create new item resources viaHttpMethod.PUT.- Returns:
-