- All Implemented Interfaces:
Serializable
,Comparable<URIs.RequestTargetForm>
,Constable
- Enclosing class:
URIs
Defines the forms supported when building a URI from a request-target as defined by RFC 7230 Section 5.3.
- Since:
- 1.3
- Author:
- Jeremy Kuhn
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDesignates an absolute request target as defined by RFC 7230 Section 5.3.2.Designates an origin request target as defined by RFC 7230 Section 5.3.1.Designates an origin request target as defined by RFC 7230 Section 5.3.2 with the addition of the fragment component. -
Method Summary
Modifier and TypeMethodDescriptionstatic URIs.RequestTargetForm
Returns the enum constant of this class with the specified name.static URIs.RequestTargetForm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE
Designates an absolute request target as defined by RFC 7230 Section 5.3.2.
-
ORIGIN
Designates an origin request target as defined by RFC 7230 Section 5.3.1.
-
ORIGIN_EXTENDED
Designates an origin request target as defined by RFC 7230 Section 5.3.2 with the addition of the fragment component.
-
-
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
-