public enum HttpMultipartMode extends Enum<HttpMultipartMode>
| Enum Constant and Description | 
|---|
| EXTENDEDExtended MIME specification conformance. | 
| LEGACYLegacy compatibility mode. | 
| STRICTStrict MIME specification conformance. | 
| Modifier and Type | Method and Description | 
|---|---|
| static HttpMultipartMode | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static HttpMultipartMode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final HttpMultipartMode LEGACY
In this mode only the most essential fields are generated such as Content-Type and Content-Disposition.
public static final HttpMultipartMode STRICT
Presently conforms to RFC 822, RFC 2045, RFC 2046.
public static final HttpMultipartMode EXTENDED
In this mode header field values may contain international UTF-8 encoded characters.
Presently conforms to RFC 6532 and RFC 7578.
public static HttpMultipartMode[] values()
for (HttpMultipartMode c : HttpMultipartMode.values()) System.out.println(c);
public static HttpMultipartMode 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 nullCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.