Class CrudMethodsSupportedHttpMethods
java.lang.Object
org.springframework.data.rest.core.mapping.CrudMethodsSupportedHttpMethods
- All Implemented Interfaces:
SupportedHttpMethods
SupportedHttpMethods
that are determined by a CrudMethods
instance.- Since:
- 2.3
- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.rest.core.mapping.SupportedHttpMethods
SupportedHttpMethods.NoSupportedMethods
-
Constructor Summary
ConstructorDescriptionCrudMethodsSupportedHttpMethods
(CrudMethods crudMethods, boolean methodsExposedByDefault) Creates a newCrudMethodsSupportedHttpMethods
for the givenCrudMethods
. -
Method Summary
Modifier and TypeMethodDescriptiongetMethodsFor
(PersistentProperty<?> property) Returns the supportedHttpMethod
s for the givenPersistentProperty
.getMethodsFor
(ResourceType resourceType) Returns the supportedHttpMethod
s for the givenResourceType
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.rest.core.mapping.SupportedHttpMethods
allowsPutForCreation
-
Constructor Details
-
CrudMethodsSupportedHttpMethods
Creates a newCrudMethodsSupportedHttpMethods
for the givenCrudMethods
.- Parameters:
crudMethods
- must not be null.methodsExposedByDefault
- whether repository methods should be considered exposed by default or need to be annotated withRestResource
to really be visible.
-
-
Method Details
-
getMethodsFor
Description copied from interface:SupportedHttpMethods
Returns the supportedHttpMethod
s for the givenResourceType
.- Specified by:
getMethodsFor
in interfaceSupportedHttpMethods
- Parameters:
resourceType
- must not be null.- Returns:
-
getMethodsFor
Description copied from interface:SupportedHttpMethods
Returns the supportedHttpMethod
s for the givenPersistentProperty
.- Specified by:
getMethodsFor
in interfaceSupportedHttpMethods
- Parameters:
property
- must not be null.- Returns:
-