Package org.jboss.netty.handler.codec.http.multipart
package org.jboss.netty.handler.codec.http.multipart
HTTP multipart support.
-
ClassDescriptionAbstract Disk HttpData implementationAbstract HttpData implementationAbstract Memory HttpData implementationAttribute interfaceDefault factory giving Attribute and FileUpload according to constructor Attribute and FileUpload could be :
- MemoryAttribute, DiskAttribute or MixedAttribute
- MemoryFileUpload, DiskFileUpload or MixedFileUpload
according to the constructor.Disk implementation of AttributesDisk FileUpload implementation that stores file into real filesFileUpload interface that could be in memory, on temporary file or any other implementations.Extended interface for InterfaceHttpDataInterface to enable creation of InterfaceHttpData objectsShared Static object between HttpMessageDecoder, HttpPostRequestDecoder and HttpPostRequestEncoderException when NO Backend Array is foundThis class intends to decrease the CPU in seeking ahead some bytes in HttpPostRequestDecoderAllowed mechanism for multipart mechanism := "7bit" / "8bit" / "binary" Not allowed: "quoted-printable" / "base64"This decoder will decode Body and can handle POST BODY in multipart form.This decoder will decode Body and can handle POST BODY (both multipart and standard).Exception when the body is fully decoded, even if there is still dataException when an error occurs while decodingstates 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 ...Exception when try reading data from request in chunked format, and not enough data are available (need more chunks)This encoder will help to encode Request for a FORM as POST.Different modes to use to encode form data.Exception when an error occurs while encodingThis decoder will decode Body and can handle standard (non multipart) POST BODY.Interface for all Objects that could be encoded/decoded using HttpPostRequestEncoder/DecoderThis Attribute is only for Encoder use to insert special command between object if needed (like Multipart Mixed mode)Memory implementation of AttributesDefault FileUpload implementation that stores file into memory.
Warning: be aware of the memory limitation.Mixed implementation using both in Memory and in File with a limit of sizeMixed implementation using both in Memory and in File with a limit of size