Package org.eclipse.jetty.server
Enum MultiPartFormDataCompliance
- java.lang.Object
-
- java.lang.Enum<MultiPartFormDataCompliance>
-
- org.eclipse.jetty.server.MultiPartFormDataCompliance
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MultiPartFormDataCompliance>
public enum MultiPartFormDataCompliance extends java.lang.Enum<MultiPartFormDataCompliance>
The compliance level for parsingmultiPart/form-data
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiPartFormDataCompliance
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MultiPartFormDataCompliance[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEGACY
public static final MultiPartFormDataCompliance LEGACY
LegacymultiPart/form-data
parsing which is slow but forgiving. It will accept non compliant preambles and inconsistent line termination.- See Also:
MultiPartInputStreamParser
-
RFC7578
public static final MultiPartFormDataCompliance RFC7578
RFC7578 compliant parsing that is a fast but strict parser.- See Also:
MultiPartFormInputStream
-
-
Method Detail
-
values
public static MultiPartFormDataCompliance[] 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 (MultiPartFormDataCompliance c : MultiPartFormDataCompliance.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiPartFormDataCompliance 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
-
-