public static enum HttpChecksumProperty.Location extends java.lang.Enum<HttpChecksumProperty.Location> implements ToNode
Enum Constant and Description |
---|
HEADER
The checksum is sent in an HTTP Header.
|
TRAILER
The checksum is sent in a trailer field.
|
Modifier and Type | Method and Description |
---|---|
static HttpChecksumProperty.Location |
fromNode(Node node)
Create a Location from a Node.
|
static HttpChecksumProperty.Location |
fromString(java.lang.String value)
Returns a Location enum from String.
|
Node |
toNode()
Converts a value to a
Node . |
java.lang.String |
toString() |
static HttpChecksumProperty.Location |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpChecksumProperty.Location[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpChecksumProperty.Location HEADER
public static final HttpChecksumProperty.Location TRAILER
public static HttpChecksumProperty.Location[] values()
for (HttpChecksumProperty.Location c : HttpChecksumProperty.Location.values()) System.out.println(c);
public static HttpChecksumProperty.Location valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static HttpChecksumProperty.Location fromNode(Node node)
node
- Node to create the Location from.ExpectationNotMetException
- when given an invalid Node.public static HttpChecksumProperty.Location fromString(java.lang.String value)
value
- string to map Location enum to.java.lang.IllegalArgumentException
- when given an invalid location string.java.lang.NullPointerException
- when given a null location string.public java.lang.String toString()
toString
in class java.lang.Enum<HttpChecksumProperty.Location>