Class ConfigurableHttpMethods
java.lang.Object
org.springframework.data.rest.core.mapping.ConfigurableHttpMethods
- All Implemented Interfaces:
Iterable<HttpMethod>,Supplier<Stream<HttpMethod>>,HttpMethods,Streamable<HttpMethod>
HttpMethods that expose methods to create different ConfigurableHttpMethods.- Since:
- 3.1
- Author:
- Oliver Gierke
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConfigurableHttpMethodsstatic final ConfigurableHttpMethods -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(HttpMethod method) Returns whether the givenHttpMethodis contained in the currentHttpMethods.disable(HttpMethod... methods) Disables the givenHttpMethods.enable(HttpMethod... methods) Enables the givenHttpMethods.iterator()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.HttpMethods
and, butWithout, toSetMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NONE
-
ALL
-
-
Method Details
-
disable
Disables the givenHttpMethods.- Parameters:
methods- must not be null.- Returns:
-
enable
Enables the givenHttpMethods.- Parameters:
methods- must not be null.- Returns:
-
contains
Description copied from interface:HttpMethodsReturns whether the givenHttpMethodis contained in the currentHttpMethods.- Specified by:
containsin interfaceHttpMethods- Parameters:
method- must not be null.- Returns:
-
iterator
- Specified by:
iteratorin interfaceIterable<HttpMethod>
-