Enum Class SupportedHttpMethods.NoSupportedMethods
java.lang.Object
java.lang.Enum<SupportedHttpMethods.NoSupportedMethods>
org.springframework.data.rest.core.mapping.SupportedHttpMethods.NoSupportedMethods
- All Implemented Interfaces:
Serializable
,Comparable<SupportedHttpMethods.NoSupportedMethods>
,Constable
,SupportedHttpMethods
- Enclosing interface:
- SupportedHttpMethods
public static enum SupportedHttpMethods.NoSupportedMethods
extends Enum<SupportedHttpMethods.NoSupportedMethods>
implements SupportedHttpMethods
Null object to abstract the absence of any support for any HTTP method.
- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.springframework.data.rest.core.mapping.SupportedHttpMethods
SupportedHttpMethods.NoSupportedMethods
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whetherHttpMethod.PUT
requests are supported for item resource creation.getMethodsFor
(PersistentProperty<?> property) Returns the supportedHttpMethod
s for the givenPersistentProperty
.getMethodsFor
(ResourceType resourcType) Returns the supportedHttpMethod
s for the givenResourceType
.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getMethodsFor
Description copied from interface:SupportedHttpMethods
Returns the supportedHttpMethod
s for the givenResourceType
.- Specified by:
getMethodsFor
in interfaceSupportedHttpMethods
- Parameters:
resourcType
- must not be null.- Returns:
-
getMethodsFor
Description copied from interface:SupportedHttpMethods
Returns the supportedHttpMethod
s for the givenPersistentProperty
.- Specified by:
getMethodsFor
in interfaceSupportedHttpMethods
- Parameters:
property
- must not be null.- Returns:
-
allowsPutForCreation
public boolean allowsPutForCreation()Description copied from interface:SupportedHttpMethods
Returns whetherHttpMethod.PUT
requests are supported for item resource creation.- Specified by:
allowsPutForCreation
in interfaceSupportedHttpMethods
- Returns:
-