Home / Class/ HttpPostStandardRequestDecoder Class — netty Architecture

HttpPostStandardRequestDecoder Class — netty Architecture

Architecture documentation for the HttpPostStandardRequestDecoder class in HttpPostStandardRequestDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb["HttpPostStandardRequestDecoder"]
  aef5f11a_4b54_0423_5943_aa0ce050ca0a["HttpPostStandardRequestDecoder.java"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|defined in| aef5f11a_4b54_0423_5943_aa0ce050ca0a
  78a1a8a1_cec0_c0b0_5b7d_9c2845c750f8["HttpPostStandardRequestDecoder()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 78a1a8a1_cec0_c0b0_5b7d_9c2845c750f8
  e737905a_6098_7c70_a961_e0b0dcc47c2c["checkDestroyed()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| e737905a_6098_7c70_a961_e0b0dcc47c2c
  6e0de59d_22bc_4c62_5e5b_26fe949f698f["isMultipart()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 6e0de59d_22bc_4c62_5e5b_26fe949f698f
  f246b91a_9ec1_7df5_d135_374ab150610d["setDiscardThreshold()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| f246b91a_9ec1_7df5_d135_374ab150610d
  5cfb86df_319a_66b6_518c_c5f3a543918a["getDiscardThreshold()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 5cfb86df_319a_66b6_518c_c5f3a543918a
  63c29e1d_7d40_02c6_adf5_07b3ba0cb756["getBodyHttpDatas()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 63c29e1d_7d40_02c6_adf5_07b3ba0cb756
  02dc3dfd_ef74_2c11_b216_3be9241512b5["InterfaceHttpData()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 02dc3dfd_ef74_2c11_b216_3be9241512b5
  ca5ddb4d_17e4_ec0c_d040_21dd1d6d0ef9["hasNext()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| ca5ddb4d_17e4_ec0c_d040_21dd1d6d0ef9
  0078a33c_b174_7378_01cd_6b44e48e9ff3["parseBody()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 0078a33c_b174_7378_01cd_6b44e48e9ff3
  c71d2c6b_810f_0117_65ca_127d4b53887d["addHttpData()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| c71d2c6b_810f_0117_65ca_127d4b53887d
  47cf8780_9b26_3d2c_c197_23d4789457b4["parseBodyAttributesStandard()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 47cf8780_9b26_3d2c_c197_23d4789457b4
  a333b733_1885_6dca_feab_aaae770038b8["parseBodyAttributes()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| a333b733_1885_6dca_feab_aaae770038b8
  27ed40dc_380e_8a3b_3226_377c2a135fa9["setFinalBuffer()"]
  9a5a01b4_1d50_03ee_e135_2164d7bf32cb -->|method| 27ed40dc_380e_8a3b_3226_377c2a135fa9

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java lines 53–719

public class HttpPostStandardRequestDecoder implements InterfaceHttpPostRequestDecoder {

    /**
     * Factory used to create InterfaceHttpData
     */
    private final HttpDataFactory factory;

    /**
     * Request to decode
     */
    private final HttpRequest request;

    /**
     * Default charset to use
     */
    private final Charset charset;

    /**
     * The maximum number of fields allows by the form
     */
    private final int maxFields;

    /**
     * The maximum number of accumulated bytes when decoding a field
     */
    private final int maxBufferedBytes;

    /**
     * Does the last chunk already received
     */
    private boolean isLastChunk;

    /**
     * HttpDatas from Body
     */
    private final List<InterfaceHttpData> bodyListHttpData = new ArrayList<InterfaceHttpData>();

    /**
     * HttpDatas as Map from Body
     */
    private final Map<String, List<InterfaceHttpData>> bodyMapHttpData = new TreeMap<String, List<InterfaceHttpData>>(
            CaseIgnoringComparator.INSTANCE);

    /**
     * The current channelBuffer
     */
    private ByteBuf undecodedChunk;

    /**
     * Body HttpDatas current position
     */
    private int bodyListHttpDataRank;

    /**
     * Current getStatus
     */
    private MultiPartStatus currentStatus = MultiPartStatus.NOTSTARTED;

    /**
     * The current Attribute that is currently in decode process
     */
    private Attribute currentAttribute;

    private boolean destroyed;

    private int discardThreshold = HttpPostRequestDecoder.DEFAULT_DISCARD_THRESHOLD;

    /**
     *
     * @param request
     *            the request to decode
     * @throws NullPointerException
     *             for request
     * @throws ErrorDataDecoderException
     *             if the default charset was wrong when decoding or other
     *             errors
     */
    public HttpPostStandardRequestDecoder(HttpRequest request) {
        this(new DefaultHttpDataFactory(DefaultHttpDataFactory.MINSIZE), request, HttpConstants.DEFAULT_CHARSET);
    }

Frequently Asked Questions

What is the HttpPostStandardRequestDecoder class?
HttpPostStandardRequestDecoder is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java.
Where is HttpPostStandardRequestDecoder defined?
HttpPostStandardRequestDecoder is defined in codec-http/src/main/java/io/netty/handler/codec/http/multipart/HttpPostStandardRequestDecoder.java at line 53.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free