public class ExposureConfiguration extends Object implements ExposureConfigurer
forDomainType(Class). Useful global
shortcuts like disablePutOnItemResources() do exist as well.forDomainType(Class)ExposureConfigurer.AggregateResourceHttpMethodsFilter, ExposureConfigurer.AssociationResourceHttpMethodsFilter| Constructor and Description |
|---|
ExposureConfiguration() |
public ExposureConfiguration withCollectionExposure(ExposureConfigurer.AggregateResourceHttpMethodsFilter filter)
ExposureConfigurerExposureConfigurer.AggregateResourceHttpMethodsFilter to be used for collection resources.withCollectionExposure in interface ExposureConfigurerfilter - must not be null.public ExposureConfiguration withItemExposure(ExposureConfigurer.AggregateResourceHttpMethodsFilter filter)
ExposureConfigurerExposureConfigurer.AggregateResourceHttpMethodsFilter to be used for item resources.withItemExposure in interface ExposureConfigurerpublic ExposureConfiguration withAssociationExposure(ExposureConfigurer.AssociationResourceHttpMethodsFilter filter)
ExposureConfigurerExposureConfigurer.AssociationResourceHttpMethodsFilter.withAssociationExposure in interface ExposureConfigurerpublic ExposureConfiguration disablePutForCreation()
ExposureConfigurerHttpMethod.PUT.disablePutForCreation in interface ExposureConfigurerpublic ExposureConfigurer forDomainType(Class<?> type)
ExposureConfigurer to allow the registration of type specific
AggregateResourceHttpMethodsFilter and AssociationResourceHttpMethodsFilters which means the
configured filters will only be invoked for aggregates of the given type and properties owned by that type
respectively.type - must not be null.public ExposureConfiguration disablePutOnItemResources()
HttpMethod.PUT for item resources.public ExposureConfiguration disablePatchOnItemResources()
HttpMethod.PATCH for item resources.public boolean allowsPutForCreation(ResourceMetadata metadata)
ResourceMetadata.metadata - must not be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.