public interface InterfaceHttpPostRequestDecoder
destroy()
after completion to release all resources.Modifier and Type | Method and Description |
---|---|
void |
cleanFiles()
Clean all HttpDatas (on Disk) for the current request.
|
void |
destroy()
Destroy the
InterfaceHttpPostRequestDecoder and release all it resources. |
InterfaceHttpData |
getBodyHttpData(java.lang.String name)
This getMethod returns the first InterfaceHttpData with the given name from
body.
|
java.util.List<InterfaceHttpData> |
getBodyHttpDatas()
This getMethod returns a List of all HttpDatas from body.
|
java.util.List<InterfaceHttpData> |
getBodyHttpDatas(java.lang.String name)
This getMethod returns a List of all HttpDatas with the given name from
body.
|
int |
getDiscardThreshold()
Return the threshold in bytes after which read data in the buffer should be discarded.
|
boolean |
hasNext()
True if at current getStatus, 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.
|
InterfaceHttpPostRequestDecoder |
offer(HttpContent content)
Initialized the internals from a new chunk
|
void |
removeHttpDataFromClean(InterfaceHttpData data)
Remove the given FileUpload from the list of FileUploads to clean
|
void |
setDiscardThreshold(int discardThreshold)
Set the amount of bytes after which read bytes in the buffer should be discarded.
|
boolean isMultipart()
void setDiscardThreshold(int discardThreshold)
0
to disable it.int getDiscardThreshold()
java.util.List<InterfaceHttpData> getBodyHttpDatas()
HttpPostRequestDecoder.NotEnoughDataDecoderException
- Need more chunksjava.util.List<InterfaceHttpData> getBodyHttpDatas(java.lang.String name)
HttpPostRequestDecoder.NotEnoughDataDecoderException
- need more chunksInterfaceHttpData getBodyHttpData(java.lang.String name)
HttpPostRequestDecoder.NotEnoughDataDecoderException
- need more chunksInterfaceHttpPostRequestDecoder offer(HttpContent content)
content
- the new received chunkHttpPostRequestDecoder.ErrorDataDecoderException
- if there is a problem with the charset decoding or other
errorsboolean hasNext()
HttpPostRequestDecoder.EndOfDataDecoderException
- No more data will be availableInterfaceHttpData next()
ReferenceCounted.release()
after you are done
with processing to make sure to not leak any resourcesHttpPostRequestDecoder.EndOfDataDecoderException
- No more data will be availablevoid destroy()
InterfaceHttpPostRequestDecoder
and release all it resources. After this method
was called it is not possible to operate on it anymore.void cleanFiles()
void removeHttpDataFromClean(InterfaceHttpData data)
Copyright © 2008–2018 The Netty Project. All rights reserved.