Interface SupportedHttpMethods
- All Known Implementing Classes:
CrudMethodsSupportedHttpMethods,SupportedHttpMethods.NoSupportedMethods
public interface SupportedHttpMethods
An API to discover the
HttpMethods supported on a given ResourceType.- Author:
- Oliver Gierke
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumNull object to abstract the absence of any support for any HTTP method. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns whetherHttpMethod.PUTrequests are supported for item resource creation.getMethodsFor(PersistentProperty<?> property) Returns the supportedHttpMethods for the givenPersistentProperty.getMethodsFor(ResourceType type) Returns the supportedHttpMethods for the givenResourceType.
-
Method Details
-
getMethodsFor
Returns the supportedHttpMethods for the givenResourceType.- Parameters:
type- must not be null.- Returns:
-
getMethodsFor
Returns the supportedHttpMethods for the givenPersistentProperty.- Parameters:
property- must not be null.- Returns:
-
allowsPutForCreation
default boolean allowsPutForCreation()Returns whetherHttpMethod.PUTrequests are supported for item resource creation.- Returns:
-