public class CrudMethodsSupportedHttpMethods extends Object implements SupportedHttpMethods
SupportedHttpMethods
that are determined by a CrudMethods
instance.SupportedHttpMethods.NoSupportedMethods
Constructor and Description |
---|
CrudMethodsSupportedHttpMethods(org.springframework.data.repository.core.CrudMethods crudMethods)
Creates a new
CrudMethodsSupportedHttpMethods for the given CrudMethods . |
Modifier and Type | Method and Description |
---|---|
Set<org.springframework.http.HttpMethod> |
getMethodsFor(org.springframework.data.mapping.PersistentProperty<?> property)
Returns the supported
HttpMethod s for the given PersistentProperty . |
Set<org.springframework.http.HttpMethod> |
getMethodsFor(ResourceType resourceType)
Returns the supported
HttpMethod s for the given ResourceType . |
public CrudMethodsSupportedHttpMethods(org.springframework.data.repository.core.CrudMethods crudMethods)
CrudMethodsSupportedHttpMethods
for the given CrudMethods
.crudMethods
- must not be null.public Set<org.springframework.http.HttpMethod> getMethodsFor(ResourceType resourceType)
SupportedHttpMethods
HttpMethod
s for the given ResourceType
.getMethodsFor
in interface SupportedHttpMethods
resourceType
- must not be null.public Set<org.springframework.http.HttpMethod> getMethodsFor(org.springframework.data.mapping.PersistentProperty<?> property)
SupportedHttpMethods
HttpMethod
s for the given PersistentProperty
.getMethodsFor
in interface SupportedHttpMethods
property
- must not be null.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.