Package io.micronaut.servlet.api
Enum Class ServletAttributes
- All Implemented Interfaces:
Serializable
,CharSequence
,Comparable<ServletAttributes>
,Constable
Attributes to lookup servlet related types from the request.
- See Also:
-
HttpAttributes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAttribute to lookup theServletConfig
.Attribute to lookup theServletContext
. -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
@NonNull CharSequence
subSequence
(int start, int end) @NonNull String
toString()
static ServletAttributes
Returns the enum constant of this class with the specified name.static ServletAttributes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Enum Constant Details
-
SERVLET_CONFIG
Attribute to lookup theServletConfig
. -
SERVLET_CONTEXT
Attribute to lookup theServletContext
.
-
-
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
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classEnum<ServletAttributes>
-