public interface InterfaceHttpPostRequestDecoder
限定符和类型 | 方法和说明 |
---|---|
void |
cleanFiles()
Clean all HttpDatas (on Disk) for the current request.
|
InterfaceHttpData |
getBodyHttpData(java.lang.String name)
This method returns the first InterfaceHttpData with the given name from body.
|
java.util.List<InterfaceHttpData> |
getBodyHttpDatas()
This method returns a List of all HttpDatas from body.
|
java.util.List<InterfaceHttpData> |
getBodyHttpDatas(java.lang.String name)
This method returns a List of all HttpDatas with the given name from body.
|
boolean |
hasNext()
True if at current status, there is an available decoded InterfaceHttpData from the Body.
|
boolean |
isMultipart()
True if this request is a Multipart request
|
InterfaceHttpData |
next()
Returns the next available InterfaceHttpData or null if, at the time it is called, there is no more
available InterfaceHttpData.
|
void |
offer(HttpChunk chunk)
Initialized the internals from a new chunk
|
void |
removeHttpDataFromClean(InterfaceHttpData data)
Remove the given FileUpload from the list of FileUploads to clean
|
boolean isMultipart()
java.util.List<InterfaceHttpData> getBodyHttpDatas() throws HttpPostRequestDecoder.NotEnoughDataDecoderException
HttpPostRequestDecoder.NotEnoughDataDecoderException
- Need more chunksjava.util.List<InterfaceHttpData> getBodyHttpDatas(java.lang.String name) throws HttpPostRequestDecoder.NotEnoughDataDecoderException
HttpPostRequestDecoder.NotEnoughDataDecoderException
- need more chunksInterfaceHttpData getBodyHttpData(java.lang.String name) throws HttpPostRequestDecoder.NotEnoughDataDecoderException
HttpPostRequestDecoder.NotEnoughDataDecoderException
- need more chunksvoid offer(HttpChunk chunk) throws HttpPostRequestDecoder.ErrorDataDecoderException
chunk
- the new received chunkHttpPostRequestDecoder.ErrorDataDecoderException
- if there is a problem with the charset decoding or
other errorsboolean hasNext() throws HttpPostRequestDecoder.EndOfDataDecoderException
HttpPostRequestDecoder.EndOfDataDecoderException
- No more data will be availableInterfaceHttpData next() throws HttpPostRequestDecoder.EndOfDataDecoderException
HttpPostRequestDecoder.EndOfDataDecoderException
- No more data will be availablevoid cleanFiles()
void removeHttpDataFromClean(InterfaceHttpData data)