Uses of Interface
org.jboss.netty.handler.codec.http.multipart.InterfaceHttpData
-
Packages that use InterfaceHttpData Package Description org.jboss.netty.example.http.upload org.jboss.netty.handler.codec.http.multipart HTTP multipart support. -
-
Uses of InterfaceHttpData in org.jboss.netty.example.http.upload
Methods in org.jboss.netty.example.http.upload that return types with arguments of type InterfaceHttpData Modifier and Type Method Description private static java.util.List<InterfaceHttpData>HttpUploadClient. formpost(ClientBootstrap bootstrap, java.lang.String host, int port, java.net.URI uriSimple, java.io.File file, HttpDataFactory factory, java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> headers)Standard post without multipart but already support on Factory (memory management)Methods in org.jboss.netty.example.http.upload with parameters of type InterfaceHttpData Modifier and Type Method Description private voidHttpUploadServerHandler. writeHttpData(InterfaceHttpData data) -
Uses of InterfaceHttpData in org.jboss.netty.handler.codec.http.multipart
Subinterfaces of InterfaceHttpData in org.jboss.netty.handler.codec.http.multipart Modifier and Type Interface Description interfaceAttributeAttribute interfaceinterfaceFileUploadFileUpload interface that could be in memory, on temporary file or any other implementations.interfaceHttpDataExtended interface for InterfaceHttpDataClasses in org.jboss.netty.handler.codec.http.multipart that implement InterfaceHttpData Modifier and Type Class Description classAbstractDiskHttpDataAbstract Disk HttpData implementationclassAbstractHttpDataAbstract HttpData implementationclassAbstractMemoryHttpDataAbstract Memory HttpData implementationclassDiskAttributeDisk implementation of AttributesclassDiskFileUploadDisk FileUpload implementation that stores file into real filesclassInternalAttributeThis Attribute is only for Encoder use to insert special command between object if needed (like Multipart Mixed mode)classMemoryAttributeMemory implementation of AttributesclassMemoryFileUploadDefault FileUpload implementation that stores file into memory.
Warning: be aware of the memory limitation.classMixedAttributeMixed implementation using both in Memory and in File with a limit of sizeclassMixedFileUploadMixed implementation using both in Memory and in File with a limit of sizeFields in org.jboss.netty.handler.codec.http.multipart declared as InterfaceHttpData Modifier and Type Field Description private InterfaceHttpDataHttpPostRequestEncoder. currentDataThe current InterfaceHttpData to encode (used if more chunks are available)Fields in org.jboss.netty.handler.codec.http.multipart with type parameters of type InterfaceHttpData Modifier and Type Field Description private java.util.List<InterfaceHttpData>HttpPostRequestEncoder. bodyListDatasInterfaceHttpData for Body (without encoding)private java.util.List<InterfaceHttpData>HttpPostMultipartRequestDecoder. bodyListHttpDataHttpDatas from Bodyprivate java.util.List<InterfaceHttpData>HttpPostStandardRequestDecoder. bodyListHttpDataHttpDatas from Bodyprivate java.util.Map<java.lang.String,java.util.List<InterfaceHttpData>>HttpPostMultipartRequestDecoder. bodyMapHttpDataHttpDatas as Map from Bodyprivate java.util.Map<java.lang.String,java.util.List<InterfaceHttpData>>HttpPostStandardRequestDecoder. bodyMapHttpDataHttpDatas as Map from Bodyprivate java.util.ListIterator<InterfaceHttpData>HttpPostRequestEncoder. iteratorIterator to be used when encoding will be called chunk after chunk(package private) java.util.List<InterfaceHttpData>HttpPostRequestEncoder. multipartHttpDatasThe final Multipart List of InterfaceHttpData including encodingMethods in org.jboss.netty.handler.codec.http.multipart that return InterfaceHttpData Modifier and Type Method Description private InterfaceHttpDataHttpPostMultipartRequestDecoder. decodeMultipart(HttpPostRequestDecoder.MultiPartStatus state)Decode a multipart request by pieces
NOTSTARTED PREAMBLE (
(HEADERDELIMITER DISPOSITION (FIELD | FILEUPLOAD))*
(HEADERDELIMITER DISPOSITION MIXEDPREAMBLE
(MIXEDDELIMITER MIXEDDISPOSITION MIXEDFILEUPLOAD)+
MIXEDCLOSEDELIMITER)*
CLOSEDELIMITER)+ EPILOGUE
Inspired from HttpMessageDecoderprivate InterfaceHttpDataHttpPostMultipartRequestDecoder. findMultipartDelimiter(java.lang.String delimiter, HttpPostRequestDecoder.MultiPartStatus dispositionStatus, HttpPostRequestDecoder.MultiPartStatus closeDelimiterStatus)Find the next Multipart Delimiterprivate InterfaceHttpDataHttpPostMultipartRequestDecoder. findMultipartDisposition()Find the next DispositionInterfaceHttpDataHttpPostMultipartRequestDecoder. getBodyHttpData(java.lang.String name)InterfaceHttpDataHttpPostRequestDecoder. getBodyHttpData(java.lang.String name)This method returns the first InterfaceHttpData with the given name from body.
If chunked, all chunks must have been offered using offer() method.InterfaceHttpDataHttpPostStandardRequestDecoder. getBodyHttpData(java.lang.String name)InterfaceHttpDataInterfaceHttpPostRequestDecoder. getBodyHttpData(java.lang.String name)This method returns the first InterfaceHttpData with the given name from body.
If chunked, all chunks must have been offered using offer() method.private InterfaceHttpDataHttpPostMultipartRequestDecoder. getFileUpload(java.lang.String delimiter)Get the FileUpload (new one or current one)InterfaceHttpDataHttpPostMultipartRequestDecoder. next()InterfaceHttpDataHttpPostRequestDecoder. next()Returns the next available InterfaceHttpData or null if, at the time it is called, there is no more available InterfaceHttpData.InterfaceHttpDataHttpPostStandardRequestDecoder. next()InterfaceHttpDataInterfaceHttpPostRequestDecoder. next()Returns the next available InterfaceHttpData or null if, at the time it is called, there is no more available InterfaceHttpData.Methods in org.jboss.netty.handler.codec.http.multipart that return types with arguments of type InterfaceHttpData Modifier and Type Method Description java.util.List<InterfaceHttpData>HttpPostMultipartRequestDecoder. getBodyHttpDatas()java.util.List<InterfaceHttpData>HttpPostMultipartRequestDecoder. getBodyHttpDatas(java.lang.String name)java.util.List<InterfaceHttpData>HttpPostRequestDecoder. getBodyHttpDatas()This method returns a List of all HttpDatas from body.
If chunked, all chunks must have been offered using offer() method.java.util.List<InterfaceHttpData>HttpPostRequestDecoder. getBodyHttpDatas(java.lang.String name)This method returns a List of all HttpDatas with the given name from body.
If chunked, all chunks must have been offered using offer() method.java.util.List<InterfaceHttpData>HttpPostStandardRequestDecoder. getBodyHttpDatas()java.util.List<InterfaceHttpData>HttpPostStandardRequestDecoder. getBodyHttpDatas(java.lang.String name)java.util.List<InterfaceHttpData>InterfaceHttpPostRequestDecoder. getBodyHttpDatas()This method returns a List of all HttpDatas from body.
If chunked, all chunks must have been offered using offer() method.java.util.List<InterfaceHttpData>InterfaceHttpPostRequestDecoder. getBodyHttpDatas(java.lang.String name)This method returns a List of all HttpDatas with the given name from body.
If chunked, all chunks must have been offered using offer() method.java.util.List<InterfaceHttpData>HttpPostRequestEncoder. getBodyListAttributes()This method returns a List of all InterfaceHttpData from body part.Methods in org.jboss.netty.handler.codec.http.multipart with parameters of type InterfaceHttpData Modifier and Type Method Description voidHttpPostRequestEncoder. addBodyHttpData(InterfaceHttpData data)Add the InterfaceHttpData to the Body listprivate voidHttpPostMultipartRequestDecoder. addHttpData(InterfaceHttpData data)Utility function to add a new decoded dataprivate voidHttpPostStandardRequestDecoder. addHttpData(InterfaceHttpData data)Utility function to add a new decoded dataintDiskAttribute. compareTo(InterfaceHttpData o)intDiskFileUpload. compareTo(InterfaceHttpData o)intInternalAttribute. compareTo(InterfaceHttpData o)intMemoryAttribute. compareTo(InterfaceHttpData other)intMemoryFileUpload. compareTo(InterfaceHttpData o)intMixedAttribute. compareTo(InterfaceHttpData o)intMixedFileUpload. compareTo(InterfaceHttpData o)voidDefaultHttpDataFactory. removeHttpDataFromClean(HttpRequest request, InterfaceHttpData data)voidHttpDataFactory. removeHttpDataFromClean(HttpRequest request, InterfaceHttpData data)Remove the given InterfaceHttpData from clean list (will not delete the file, except if the file is still a temporary one as setup at construction)voidHttpPostMultipartRequestDecoder. removeHttpDataFromClean(InterfaceHttpData data)voidHttpPostRequestDecoder. removeHttpDataFromClean(InterfaceHttpData data)Remove the given FileUpload from the list of FileUploads to cleanvoidHttpPostStandardRequestDecoder. removeHttpDataFromClean(InterfaceHttpData data)voidInterfaceHttpPostRequestDecoder. removeHttpDataFromClean(InterfaceHttpData data)Remove the given FileUpload from the list of FileUploads to cleanMethod parameters in org.jboss.netty.handler.codec.http.multipart with type arguments of type InterfaceHttpData Modifier and Type Method Description voidHttpPostRequestEncoder. setBodyHttpDatas(java.util.List<InterfaceHttpData> datas)Set the Body HttpDatas list
-