public class ConfigurationApplyingSupportedHttpMethodsAdapter extends Object implements SupportedHttpMethods
SupportedHttpMethods instance that applies settings made through ExposureConfiguration
to the calculated ConfigurableHttpMethodsExposureConfigurationSupportedHttpMethods.NoSupportedMethods| Constructor and Description |
|---|
ConfigurationApplyingSupportedHttpMethodsAdapter(@NonNull ExposureConfiguration configuration,
@NonNull ResourceMetadata resourceMetadata,
@NonNull SupportedHttpMethods delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsPutForCreation()
Returns whether
HttpMethod.PUT requests are supported for item resource creation. |
HttpMethods |
getMethodsFor(PersistentProperty<?> property)
Returns the supported
HttpMethods for the given PersistentProperty. |
HttpMethods |
getMethodsFor(ResourceType type)
Returns the supported
HttpMethods for the given ResourceType. |
public ConfigurationApplyingSupportedHttpMethodsAdapter(@NonNull
@NonNull ExposureConfiguration configuration,
@NonNull
@NonNull ResourceMetadata resourceMetadata,
@NonNull
@NonNull SupportedHttpMethods delegate)
public HttpMethods getMethodsFor(ResourceType type)
SupportedHttpMethodsHttpMethods for the given ResourceType.getMethodsFor in interface SupportedHttpMethodstype - must not be null.public HttpMethods getMethodsFor(PersistentProperty<?> property)
SupportedHttpMethodsHttpMethods for the given PersistentProperty.getMethodsFor in interface SupportedHttpMethodsproperty - must not be null.public boolean allowsPutForCreation()
SupportedHttpMethodsHttpMethod.PUT requests are supported for item resource creation.allowsPutForCreation in interface SupportedHttpMethodsCopyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.