destroy() after completion to release all resources.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | bodyListHttpData
HttpDatas from Body |
| private int | bodyListHttpDataRank
Body HttpDatas current position |
| private final Map | bodyMapHttpData
HttpDatas as Map from Body |
| private final Charset | charset
Default charset to use |
| private Attribute | currentAttribute
The current Attribute that is currently in decode process |
| private HttpPostRequestDecoder. | currentStatus
Current getStatus |
| private boolean | |
| private int | |
| private final HttpDataFactory | factory
Factory used to create InterfaceHttpData |
| private boolean | isLastChunk
Does the last chunk already received |
| private final HttpRequest | request
Request to decode |
| private ByteBuf | undecodedChunk
The current channelBuffer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpPostStandardRequestDecoder(HttpDataFactory
the factory used to create InterfaceHttpData factory, HttpRequest the request to decode request)
|
| public | HttpPostStandardRequestDecoder(HttpDataFactory
the factory used to create InterfaceHttpData factory, HttpRequest the request to decode request, Charset the charset to use as default charset)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| private void | |
| public void | cleanFiles()
Implements io. HttpDatas for the current request.
|
| public InterfaceHttpData | currentPartialHttpData()
Implements io. |
| private static String | |
| private static ByteBuf | |
| public void | destroy()
Implements io. HttpPostStandardRequestDecoder and release all it resources.
|
| public InterfaceHttpData | Returns: The first Body InterfaceHttpData with the given name (ignore case)Implements io. |
| public List | Returns: the list of HttpDatas from Body part for POST getMethodImplements io. |
| public List | Returns: All Body HttpDatas with the given name (ignore case)Implements io. |
| public int | getDiscardThreshold()
Implements io. |
| public boolean | Returns: True if at current getStatus, there is a decoded InterfaceHttpDataImplements io. |
| public boolean | Returns: True if this request is a Multipart requestImplements io. |
| public InterfaceHttpData | Returns: the next available InterfaceHttpData or null if noneImplements io. |
| public HttpPostStandardRequestDecoder | offer(HttpContent
the new received chunk content)Implements io. |
| private void | |
| private void | parseBodyAttributes()
This getMethod fill the map and list with as much Attribute as possible from Body in not Multipart mode. |
| private void | parseBodyAttributesStandard()
This getMethod fill the map and list with as much Attribute as possible from Body in not Multipart mode. |
| public void | removeHttpDataFromClean(InterfaceHttpData data)
Implements io. |
| public void | setDiscardThreshold(int discardThreshold)
Implements io. |
| private void |
| bodyListHttpData | back to summary |
|---|---|
| private final List<InterfaceHttpData> bodyListHttpData HttpDatas from Body | |
| bodyListHttpDataRank | back to summary |
|---|---|
| private int bodyListHttpDataRank Body HttpDatas current position | |
| bodyMapHttpData | back to summary |
|---|---|
| private final Map<String, List<InterfaceHttpData>> bodyMapHttpData HttpDatas as Map from Body | |
| charset | back to summary |
|---|---|
| private final Charset charset Default charset to use | |
| currentAttribute | back to summary |
|---|---|
| private Attribute currentAttribute The current Attribute that is currently in decode process | |
| currentStatus | back to summary |
|---|---|
| private HttpPostRequestDecoder. Current getStatus | |
| destroyed | back to summary |
|---|---|
| private boolean destroyed | |
| discardThreshold | back to summary |
|---|---|
| private int discardThreshold | |
| factory | back to summary |
|---|---|
| private final HttpDataFactory factory Factory used to create InterfaceHttpData | |
| isLastChunk | back to summary |
|---|---|
| private boolean isLastChunk Does the last chunk already received | |
| request | back to summary |
|---|---|
| private final HttpRequest request Request to decode | |
| undecodedChunk | back to summary |
|---|---|
| private ByteBuf undecodedChunk The current channelBuffer | |
| HttpPostStandardRequestDecoder | back to summary |
|---|---|
public HttpPostStandardRequestDecoder(HttpRequest request)
| |
| HttpPostStandardRequestDecoder | back to summary |
|---|---|
public HttpPostStandardRequestDecoder(HttpDataFactory factory, HttpRequest request)
| |
| HttpPostStandardRequestDecoder | back to summary |
|---|---|
public HttpPostStandardRequestDecoder(HttpDataFactory factory, HttpRequest request, Charset charset)
| |
| addHttpData | back to summary |
|---|---|
| protected void addHttpData(InterfaceHttpData data) Utility function to add a new decoded data | |
| checkDestroyed | back to summary |
|---|---|
| private void checkDestroyed() | |
| cleanFiles | back to summary |
|---|---|
| public void cleanFiles() Implements io. Clean all
| |
| currentPartialHttpData | back to summary |
|---|---|
| public InterfaceHttpData currentPartialHttpData() Implements io. Doc from io. 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.
| |
| decodeAttribute | back to summary |
|---|---|
| private static String decodeAttribute(String s, Charset charset) Decode component
| |
| decodeAttribute | back to summary |
|---|---|
| private static ByteBuf decodeAttribute(ByteBuf b, Charset charset) | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements io. Destroy the
| |
| getBodyHttpData | back to summary |
|---|---|
| public InterfaceHttpData getBodyHttpData(String name) Implements io. This getMethod returns the first InterfaceHttpData with the given name from
body.
| |
| getBodyHttpDatas | back to summary |
|---|---|
| public List Implements io. This getMethod returns a List of all HttpDatas from body.
| |
| getBodyHttpDatas | back to summary |
|---|---|
| public List Implements io. This getMethod returns a List of all HttpDatas with the given name from
body.
| |
| getDiscardThreshold | back to summary |
|---|---|
| public int getDiscardThreshold() Implements io. Return the threshold in bytes after which read data in the buffer should be discarded.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements io. 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() Implements io. True if this request is a Multipart request
| |
| next | back to summary |
|---|---|
| public InterfaceHttpData next() Implements io. 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 HttpPostStandardRequestDecoder offer(HttpContent content) Implements io. Initialized the internals from a new chunk
| |
| parseBody | back to summary |
|---|---|
| private void parseBody() This getMethod will parse as much as possible data and fill the list and map
| |
| parseBodyAttributes | back to summary |
|---|---|
| private void parseBodyAttributes() This getMethod fill the map and list with as much Attribute as possible from Body in not Multipart mode.
| |
| parseBodyAttributesStandard | back to summary |
|---|---|
| private void parseBodyAttributesStandard() This getMethod fill the map and list with as much Attribute as possible from Body in not Multipart mode.
| |
| removeHttpDataFromClean | back to summary |
|---|---|
| public void removeHttpDataFromClean(InterfaceHttpData data) Implements io. Remove the given FileUpload from the list of FileUploads to clean
| |
| setDiscardThreshold | back to summary |
|---|---|
| public void setDiscardThreshold(int discardThreshold) Implements io. 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
| |
| setFinalBuffer | back to summary |
|---|---|
| private void setFinalBuffer(ByteBuf buffer) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private byte | |
| private int | |
| private final ByteBuf |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| hiByte | back to summary |
|---|---|
| private byte hiByte | |
| nextEscapedIdx | back to summary |
|---|---|
| private int nextEscapedIdx | |
| output | back to summary |
|---|---|
| private final ByteBuf output | |
| UrlDecoder | back to summary |
|---|---|
| pack-priv UrlDecoder(ByteBuf output) | |
| process | back to summary |
|---|---|
| public boolean process(byte value) Implements io.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean |
| UrlEncodedDetector | back to summary |
|---|---|
| private UrlEncodedDetector() | |
| process | back to summary |
|---|---|
| public boolean process(byte value) throws Exception Implements io.
| |