Package io.micronaut.http
Enum Class HttpAttributes
- All Implemented Interfaces:
Serializable
,CharSequence
,Comparable<HttpAttributes>
,Constable
@Deprecated(forRemoval=true,
since="4.8.0")
public enum HttpAttributes
extends Enum<HttpAttributes>
implements CharSequence
Deprecated, for removal: This API element is subject to removal in a future version.
Common HTTP attributes.
- Since:
- 1.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Not used anymoreDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Please use the accessors in RouteAttributesDeprecated, for removal: This API element is subject to removal in a future version.Body that was discarded because this is a HEAD response.Deprecated, for removal: This API element is subject to removal in a future version.Please use accessors in ClientAttributes insteadDeprecated, for removal: This API element is subject to removal in a future version.UnusedDeprecated, for removal: This API element is subject to removal in a future version.Use accessors inHttpMessage
insteadDeprecated, for removal: This API element is subject to removal in a future version.No replacement.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Please use the accessors in RouteAttributesDeprecated, for removal: This API element is subject to removal in a future version.Please use the accessors in RouteAttributesDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UseHttpRequest.getCertificate()
instead -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) Deprecated, for removal: This API element is subject to removal in a future version.int
length()
Deprecated, for removal: This API element is subject to removal in a future version.subSequence
(int start, int end) Deprecated, for removal: This API element is subject to removal in a future version.toString()
Deprecated, for removal: This API element is subject to removal in a future version.static HttpAttributes
Deprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static HttpAttributes[]
values()
Deprecated, for removal: This API element is subject to removal in a future version.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
-
PRINCIPAL
Deprecated, for removal: This API element is subject to removal in a future version.Attribute used to store thePrincipal
. -
ERROR
Deprecated, for removal: This API element is subject to removal in a future version.Attribute used to store any exception that may have occurred during request processing. -
ROUTE_MATCH
Deprecated, for removal: This API element is subject to removal in a future version.Please use the accessors in RouteAttributesAttribute used to store the object that represents the Route match. -
ROUTE_INFO
Deprecated, for removal: This API element is subject to removal in a future version.Please use the accessors in RouteAttributesAttribute used to store the object that represents the Route. -
URI_TEMPLATE
Deprecated, for removal: This API element is subject to removal in a future version.Attribute used to store the URI template defined by the route. -
METHOD_NAME
Deprecated, for removal: This API element is subject to removal in a future version.No replacement. Use your own attribute if necessaryAttribute used to store the HTTP method name, if required within the response. -
SERVICE_ID
Deprecated, for removal: This API element is subject to removal in a future version.Attribute used to store the service ID a client request is being sent to. Used for tracing purposes. -
MEDIA_TYPE_CODEC
Deprecated, for removal: This API element is subject to removal in a future version.UnusedAttribute used to store the MediaTypeCodec. Used to override the registered codec per-request. -
INVOCATION_CONTEXT
Deprecated, for removal: This API element is subject to removal in a future version.Please use accessors in ClientAttributes insteadAttribute used to store the MethodInvocationContext by declarative client. -
EXCEPTION
Deprecated, for removal: This API element is subject to removal in a future version.Please use the accessors in RouteAttributesAttribute used to store the cause of an error response. -
X509_CERTIFICATE
Deprecated, for removal: This API element is subject to removal in a future version.UseHttpRequest.getCertificate()
insteadAttribute used to store a client Certificate (mutual authentication). -
AVAILABLE_HTTP_METHODS
Deprecated, for removal: This API element is subject to removal in a future version.Not used anymoreAttribute used to store Available HTTP methods on the OPTIONS request. -
MESSAGE_BODY_WRITER
Deprecated, for removal: This API element is subject to removal in a future version.Use accessors inHttpMessage
insteadThe message body writer. -
HEAD_BODY
Deprecated, for removal: This API element is subject to removal in a future version.Body that was discarded because this is a HEAD response.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
charAt
in interfaceCharSequence
-
subSequence
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
subSequence
in interfaceCharSequence
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classEnum<HttpAttributes>
-
BasicHttpAttributes
) instead of directly throughAttributeHolder
.