destroy() after completion to release all resources.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public InterfaceHttpData | Returns: the current InterfaceHttpData if currently in decoding status or null if none.Returns the current InterfaceHttpData if currently in decoding status, meaning all data are not yet within, or null if there is no InterfaceHttpData currently in decoding status (either because none yet decoded or none currently partially decoded). |
| public void | |
| public InterfaceHttpData | Returns: The first Body InterfaceHttpData with the given name (ignore case)This getMethod returns the first InterfaceHttpData with the given name from body. |
| public List | Returns: the list of HttpDatas from Body part for POST getMethodThis getMethod returns a List of all HttpDatas from body. |
| public List | Returns: All Body HttpDatas with the given name (ignore case)This getMethod returns a List of all HttpDatas with the given name from body. |
| public int | getDiscardThreshold()
Return the threshold in bytes after which read data in the buffer should be discarded. |
| public boolean | Returns: True if at current getStatus, there is a decoded InterfaceHttpDataTrue if at current getStatus, there is an available decoded InterfaceHttpData from the Body. |
| public boolean | Returns: True if this request is a Multipart requestTrue if this request is a Multipart request |
| public InterfaceHttpData | Returns: the next available InterfaceHttpData or null if noneReturns the next available InterfaceHttpData or null if, at the time it is called, there is no more available InterfaceHttpData. |
| public InterfaceHttpPostRequestDecoder | |
| public void | removeHttpDataFromClean(InterfaceHttpData data)
Remove the given FileUpload from the list of FileUploads to clean |
| public void | setDiscardThreshold(int discardThreshold)
Set the amount of bytes after which read bytes in the buffer should be discarded. |
| cleanFiles | back to summary |
|---|---|
| public void cleanFiles() Clean all HttpDatas (on Disk) for the current request. | |
| currentPartialHttpData | back to summary |
|---|---|
| public InterfaceHttpData currentPartialHttpData() Returns the current InterfaceHttpData if currently in decoding status, meaning all data are not yet within, or null if there is no InterfaceHttpData currently in decoding status (either because none yet decoded or none currently partially decoded). Full decoded ones are accessible through hasNext() and next() methods.
| |
| destroy | back to summary |
|---|---|
| public void destroy() Destroy the | |
| getBodyHttpData | back to summary |
|---|---|
| public InterfaceHttpData getBodyHttpData(String name) This getMethod returns the first InterfaceHttpData with the given name from
body.
| |
| getBodyHttpDatas | back to summary |
|---|---|
| public List This getMethod returns a List of all HttpDatas from body.
| |
| getBodyHttpDatas | back to summary |
|---|---|
| public List This getMethod returns a List of all HttpDatas with the given name from
body.
| |
| getDiscardThreshold | back to summary |
|---|---|
| public int getDiscardThreshold() Return the threshold in bytes after which read data in the buffer should be discarded. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() True if at current getStatus, there is an available decoded InterfaceHttpData from the Body. This getMethod works for chunked and not chunked request.
| |
| isMultipart | back to summary |
|---|---|
| public boolean isMultipart() True if this request is a Multipart request
| |
| next | back to summary |
|---|---|
| public InterfaceHttpData next() Returns the next available InterfaceHttpData or null if, at the time it
is called, there is no more available InterfaceHttpData. A subsequent
call to offer(httpChunk) could enable more data.
Be sure to call
| |
| offer | back to summary |
|---|---|
| public InterfaceHttpPostRequestDecoder offer(HttpContent content) Initialized the internals from a new chunk
| |
| removeHttpDataFromClean | back to summary |
|---|---|
| public void removeHttpDataFromClean(InterfaceHttpData data) Remove the given FileUpload from the list of FileUploads to clean | |
| setDiscardThreshold | back to summary |
|---|---|
| public void setDiscardThreshold(int discardThreshold) Set the amount of bytes after which read bytes in the buffer should be discarded.
Setting this lower gives lower memory usage but with the overhead of more memory copies.
Use | |