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
ConstructorsConstructorDescriptionCrudMethodsSupportedHttpMethods(CrudMethods crudMethods, boolean methodsExposedByDefault) Creates a newCrudMethodsSupportedHttpMethodsfor the givenCrudMethods. -
Method Summary
Modifier and TypeMethodDescriptiongetMethodsFor(PersistentProperty<?> property) Returns the supportedHttpMethods for the givenPersistentProperty.getMethodsFor(ResourceType resourceType) Returns the supportedHttpMethods for the givenResourceType.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.rest.core.mapping.SupportedHttpMethods
allowsPutForCreation
-
Constructor Details
-
CrudMethodsSupportedHttpMethods
Creates a newCrudMethodsSupportedHttpMethodsfor the givenCrudMethods.- Parameters:
crudMethods- must not be null.methodsExposedByDefault- whether repository methods should be considered exposed by default or need to be annotated withRestResourceto really be visible.
-
-
Method Details
-
getMethodsFor
Description copied from interface:SupportedHttpMethodsReturns the supportedHttpMethods for the givenResourceType.- Specified by:
getMethodsForin interfaceSupportedHttpMethods- Parameters:
resourceType- must not be null.- Returns:
-
getMethodsFor
Description copied from interface:SupportedHttpMethodsReturns the supportedHttpMethods for the givenPersistentProperty.- Specified by:
getMethodsForin interfaceSupportedHttpMethods- Parameters:
property- must not be null.- Returns:
-