public enum ExtHeader extends Enum<ExtHeader>
Enum Constant and Description |
---|
AUTH
Authentication header.
|
DEST
Destination header.
|
ESP
Encapsulated Security Payload.
|
FRAG
Fragment header.
|
HOP
Hop-by-hop header.
|
NOEXT
No next header.
|
ROUTE
Router header.
|
UNREP
Unexpected repeats encountered.
|
UNSEQ
Unexpected sequencing encountered.
|
Modifier and Type | Method and Description |
---|---|
static short |
parseFromString(String input)
Parse a string input that could contain an ExtHeader value.
|
short |
value()
Gets the value to use for this ExtHeader.
|
static ExtHeader |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExtHeader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExtHeader NOEXT
public static final ExtHeader ESP
public static final ExtHeader AUTH
public static final ExtHeader DEST
public static final ExtHeader FRAG
public static final ExtHeader ROUTE
public static final ExtHeader HOP
public static final ExtHeader UNREP
public static final ExtHeader UNSEQ
public static ExtHeader[] values()
for (ExtHeader c : ExtHeader.values()) System.out.println(c);
public static ExtHeader valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic short value()
public static short parseFromString(String input)
input
- the input string to parseIllegalArgumentException
- if the input string does not contain a
value that can be parsed into an IPv6 extension header