Enum Class HttpAttributes

java.lang.Object
java.lang.Enum<HttpAttributes>
io.micronaut.http.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.
In order to make future optimizations possible, standard attributes should be accessed through their static method accessors (such as those in BasicHttpAttributes) instead of directly through AttributeHolder.
Common HTTP attributes.
Since:
1.0
Author:
graemerocher
  • Enum Constant Details

    • PRINCIPAL

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes PRINCIPAL
      Deprecated, for removal: This API element is subject to removal in a future version.
      Attribute used to store the Principal.
    • ERROR

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes 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(forRemoval=true, since="4.8.0") public static final HttpAttributes ROUTE_MATCH
      Deprecated, for removal: This API element is subject to removal in a future version.
      Please use the accessors in RouteAttributes
      Attribute used to store the object that represents the Route match.
    • ROUTE_INFO

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes ROUTE_INFO
      Deprecated, for removal: This API element is subject to removal in a future version.
      Please use the accessors in RouteAttributes
      Attribute used to store the object that represents the Route.
    • URI_TEMPLATE

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes 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(forRemoval=true, since="4.8.0") public static final HttpAttributes METHOD_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      No replacement. Use your own attribute if necessary
      Attribute used to store the HTTP method name, if required within the response.
    • SERVICE_ID

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes 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(forRemoval=true, since="4.8.0") public static final HttpAttributes MEDIA_TYPE_CODEC
      Deprecated, for removal: This API element is subject to removal in a future version.
      Unused
      Attribute used to store the MediaTypeCodec. Used to override the registered codec per-request.
    • INVOCATION_CONTEXT

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes INVOCATION_CONTEXT
      Deprecated, for removal: This API element is subject to removal in a future version.
      Please use accessors in ClientAttributes instead
      Attribute used to store the MethodInvocationContext by declarative client.
    • EXCEPTION

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes EXCEPTION
      Deprecated, for removal: This API element is subject to removal in a future version.
      Please use the accessors in RouteAttributes
      Attribute used to store the cause of an error response.
    • X509_CERTIFICATE

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes X509_CERTIFICATE
      Deprecated, for removal: This API element is subject to removal in a future version.
      Attribute used to store a client Certificate (mutual authentication).
    • AVAILABLE_HTTP_METHODS

      @Deprecated(forRemoval=true, since="4.7") public static final HttpAttributes AVAILABLE_HTTP_METHODS
      Deprecated, for removal: This API element is subject to removal in a future version.
      Not used anymore
      Attribute used to store Available HTTP methods on the OPTIONS request.
    • MESSAGE_BODY_WRITER

      @Deprecated(forRemoval=true, since="4.8.0") public static final HttpAttributes MESSAGE_BODY_WRITER
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use accessors in HttpMessage instead
      The message body writer.
    • HEAD_BODY

      public static final HttpAttributes 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

      public 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.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HttpAttributes valueOf(String name)
      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 name
      NullPointerException - 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 interface CharSequence
    • charAt

      public char charAt(int index)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      charAt in interface CharSequence
    • subSequence

      public CharSequence subSequence(int start, int end)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      subSequence in interface CharSequence
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Enum<HttpAttributes>