public class CrudMethodsSupportedHttpMethods extends Object implements SupportedHttpMethods
SupportedHttpMethods that are determined by a CrudMethods instance.SupportedHttpMethods.NoSupportedMethods| Constructor and Description |
|---|
CrudMethodsSupportedHttpMethods(CrudMethods crudMethods,
boolean methodsExposedByDefault)
Creates a new
CrudMethodsSupportedHttpMethods for the given CrudMethods. |
| Modifier and Type | Method and Description |
|---|---|
HttpMethods |
getMethodsFor(PersistentProperty<?> property)
Returns the supported
HttpMethods for the given PersistentProperty. |
HttpMethods |
getMethodsFor(ResourceType resourceType)
Returns the supported
HttpMethods for the given ResourceType. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowsPutForCreationpublic CrudMethodsSupportedHttpMethods(CrudMethods crudMethods, boolean methodsExposedByDefault)
CrudMethodsSupportedHttpMethods for the given CrudMethods.crudMethods - must not be null.methodsExposedByDefault - whether repository methods should be considered exposed by default or need to be
annotated with RestResource to really be visible.public HttpMethods getMethodsFor(ResourceType resourceType)
SupportedHttpMethodsHttpMethods for the given ResourceType.getMethodsFor in interface SupportedHttpMethodsresourceType - must not be null.public HttpMethods getMethodsFor(PersistentProperty<?> property)
SupportedHttpMethodsHttpMethods for the given PersistentProperty.getMethodsFor in interface SupportedHttpMethodsproperty - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.