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
Modifier and TypeInterfaceDescriptionstatic interface
A filter to post-process the supported HTTP methods by aggregate resources (collection or item resource).static interface
A filter to post-process the supported HTTP methods byAssociation
resources. -
Method Summary
Modifier and TypeMethodDescriptionDisables the ability to create new item resources viaHttpMethod.PUT
.Registers the givenExposureConfigurer.AssociationResourceHttpMethodsFilter
.Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilter
to be used for collection resources.Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilter
to be used for item resources.
-
Method Details
-
withCollectionExposure
ExposureConfigurer withCollectionExposure(ExposureConfigurer.AggregateResourceHttpMethodsFilter filter) Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilter
to be used for collection resources.- Parameters:
filter
- must not be null.- Returns:
-
withItemExposure
Registers the givenExposureConfigurer.AggregateResourceHttpMethodsFilter
to 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:
-