Enum ChunkExtension.State
- java.lang.Object
-
- java.lang.Enum<ChunkExtension.State>
-
- org.apache.tomcat.util.http.parser.ChunkExtension.State
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ChunkExtension.State>
- Enclosing class:
- ChunkExtension
public static enum ChunkExtension.State extends java.lang.Enum<ChunkExtension.State>
Parsing states for chunk extension.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRAt the carriage return.EQUALSAt the equals sign between name and value.NAMEReading the extension name.POST_NAMEState after the extension name.POST_VALUEState after the extension value.PRE_NAMEState before the extension name.QUOTED_VALUEReading a quoted extension value.VALUEReading the extension value.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChunkExtension.StatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ChunkExtension.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRE_NAME
public static final ChunkExtension.State PRE_NAME
State before the extension name.
-
NAME
public static final ChunkExtension.State NAME
Reading the extension name.
-
POST_NAME
public static final ChunkExtension.State POST_NAME
State after the extension name.
-
EQUALS
public static final ChunkExtension.State EQUALS
At the equals sign between name and value.
-
VALUE
public static final ChunkExtension.State VALUE
Reading the extension value.
-
QUOTED_VALUE
public static final ChunkExtension.State QUOTED_VALUE
Reading a quoted extension value.
-
POST_VALUE
public static final ChunkExtension.State POST_VALUE
State after the extension value.
-
CR
public static final ChunkExtension.State CR
At the carriage return.
-
-
Method Detail
-
values
public static ChunkExtension.State[] 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 (ChunkExtension.State c : ChunkExtension.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChunkExtension.State valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-