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
Modifier and TypeFieldDescriptionstatic final ConfigurableHttpMethods
static final ConfigurableHttpMethods
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(HttpMethod method) Returns whether the givenHttpMethod
is contained in the currentHttpMethods
.disable
(HttpMethod... methods) Disables the givenHttpMethod
s.enable
(HttpMethod... methods) Enables the givenHttpMethod
s.iterator()
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.HttpMethods
and, butWithout, toSet
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
NONE
-
ALL
-
-
Method Details
-
disable
Disables the givenHttpMethod
s.- Parameters:
methods
- must not be null.- Returns:
-
enable
Enables the givenHttpMethod
s.- Parameters:
methods
- must not be null.- Returns:
-
contains
Description copied from interface:HttpMethods
Returns whether the givenHttpMethod
is contained in the currentHttpMethods
.- Specified by:
contains
in interfaceHttpMethods
- Parameters:
method
- must not be null.- Returns:
-
iterator
- Specified by:
iterator
in interfaceIterable<HttpMethod>
-