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