Enum HeaderValueException.Context
- java.lang.Object
-
- java.lang.Enum<HeaderValueException.Context>
-
- org.glassfish.jersey.message.internal.HeaderValueException.Context
-
- All Implemented Interfaces:
Serializable
,Comparable<HeaderValueException.Context>
- Enclosing class:
- HeaderValueException
public static enum HeaderValueException.Context extends Enum<HeaderValueException.Context>
Context that contains header problems causing this exception (e.g. forInboundMessageContext
the corresponding value isINBOUND
).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HeaderValueException.Context
valueOf(String name)
Returns the enum constant of this type with the specified name.static HeaderValueException.Context[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INBOUND
public static final HeaderValueException.Context INBOUND
Inbound context.
-
OUTBOUND
public static final HeaderValueException.Context OUTBOUND
Outbound context.
-
-
Method Detail
-
values
public static HeaderValueException.Context[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HeaderValueException.Context c : HeaderValueException.Context.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HeaderValueException.Context valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-