Enum HttpPostRequestDecoder.MultiPartStatus
java.lang.Object
java.lang.Enum<HttpPostRequestDecoder.MultiPartStatus>
org.jboss.netty.handler.codec.http.multipart.HttpPostRequestDecoder.MultiPartStatus
- All Implemented Interfaces:
Serializable
,Comparable<HttpPostRequestDecoder.MultiPartStatus>
- Enclosing class:
HttpPostRequestDecoder
protected static enum HttpPostRequestDecoder.MultiPartStatus
extends Enum<HttpPostRequestDecoder.MultiPartStatus>
states follow
NOTSTARTED PREAMBLE (
(HEADERDELIMITER DISPOSITION (FIELD | FILEUPLOAD))*
(HEADERDELIMITER DISPOSITION MIXEDPREAMBLE
(MIXEDDELIMITER MIXEDDISPOSITION MIXEDFILEUPLOAD)+
MIXEDCLOSEDELIMITER)*
CLOSEDELIMITER)+ EPILOGUE
First status is: NOSTARTED
Content-type: multipart/form-data, boundary=AaB03x => PREAMBLE in Header
--AaB03x => HEADERDELIMITER
content-disposition: form-data; name="field1" => DISPOSITION
Joe Blow => FIELD
--AaB03x => HEADERDELIMITER
content-disposition: form-data; name="pics" => DISPOSITION
Content-type: multipart/mixed, boundary=BbC04y
--BbC04y => MIXEDDELIMITER
Content-disposition: attachment; filename="file1.txt" => MIXEDDISPOSITION
Content-Type: text/plain
... contents of file1.txt ... => MIXEDFILEUPLOAD
--BbC04y => MIXEDDELIMITER
Content-disposition: file; filename="file2.gif" => MIXEDDISPOSITION
Content-type: image/gif
Content-Transfer-Encoding: binary
...contents of file2.gif... => MIXEDFILEUPLOAD
--BbC04y-- => MIXEDCLOSEDELIMITER
--AaB03x-- => CLOSEDELIMITER
Once CLOSEDELIMITER is found, last status is EPILOGUE
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOTSTARTED
-
PREAMBLE
-
HEADERDELIMITER
-
DISPOSITION
-
FIELD
-
FILEUPLOAD
-
MIXEDPREAMBLE
-
MIXEDDELIMITER
-
MIXEDDISPOSITION
-
MIXEDFILEUPLOAD
-
MIXEDCLOSEDELIMITER
-
CLOSEDELIMITER
-
PREEPILOGUE
-
EPILOGUE
-
-
Constructor Details
-
MultiPartStatus
private MultiPartStatus()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-