Home / Class/ QueryStringDecoder Class — netty Architecture

QueryStringDecoder Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063["QueryStringDecoder"]
  6d9e37f1_0110_8bff_3ba6_1e9a06f9bcd9["QueryStringDecoder.java"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|defined in| 6d9e37f1_0110_8bff_3ba6_1e9a06f9bcd9
  39e44b9f_6d70_c033_db5b_6168e56c1ef3["QueryStringDecoder()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| 39e44b9f_6d70_c033_db5b_6168e56c1ef3
  26d3c004_f4cb_efa1_25a0_6d6c3c6cc0c5["String()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| 26d3c004_f4cb_efa1_25a0_6d6c3c6cc0c5
  3fc33672_5854_fd0e_d563_5d9008b85df8["parameters()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| 3fc33672_5854_fd0e_d563_5d9008b85df8
  3cfbb642_9082_2322_122e_9b2439f8797b["pathEndIdx()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| 3cfbb642_9082_2322_122e_9b2439f8797b
  d1846460_447b_2dbf_4429_1cb3617efc85["decodeParams()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| d1846460_447b_2dbf_4429_1cb3617efc85
  4c094595_cc15_5a23_b623_bfc4c254c1c7["addParam()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| 4c094595_cc15_5a23_b623_bfc4c254c1c7
  cd0e6ffc_71d2_4a9c_4dbe_bfb0d28c2ed3["findPathEndIndex()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| cd0e6ffc_71d2_4a9c_4dbe_bfb0d28c2ed3
  a8a8f8ac_46e1_301d_7988_e84f4d4f4351["Builder()"]
  d00d9a2a_c645_a4f5_2b84_a0ba6136e063 -->|method| a8a8f8ac_46e1_301d_7988_e84f4d4f4351

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/QueryStringDecoder.java lines 63–507

public class QueryStringDecoder {

    private static final int DEFAULT_MAX_PARAMS = 1024;

    private final Charset charset;
    private final String uri;
    private final int maxParams;
    private final boolean semicolonIsNormalChar;
    private final boolean htmlQueryDecoding;
    private int pathEndIdx;
    private String path;
    private Map<String, List<String>> params;

    /**
     * Creates a new decoder that decodes the specified URI. The decoder will
     * assume that the query string is encoded in UTF-8.
     */
    public QueryStringDecoder(String uri) {
        this(builder(), uri);
    }

    /**
     * Creates a new decoder that decodes the specified URI encoded in the
     * specified charset.
     */
    public QueryStringDecoder(String uri, boolean hasPath) {
        this(builder().hasPath(hasPath), uri);
    }

    /**
     * Creates a new decoder that decodes the specified URI encoded in the
     * specified charset.
     */
    public QueryStringDecoder(String uri, Charset charset) {
        this(builder().charset(charset), uri);
    }

    /**
     * Creates a new decoder that decodes the specified URI encoded in the
     * specified charset.
     */
    public QueryStringDecoder(String uri, Charset charset, boolean hasPath) {
        this(builder().hasPath(hasPath).charset(charset), uri);
    }

    /**
     * Creates a new decoder that decodes the specified URI encoded in the
     * specified charset.
     */
    public QueryStringDecoder(String uri, Charset charset, boolean hasPath, int maxParams) {
        this(builder().hasPath(hasPath).charset(charset).maxParams(maxParams), uri);
    }

    /**
     * Creates a new decoder that decodes the specified URI encoded in the
     * specified charset.
     */
    public QueryStringDecoder(String uri, Charset charset, boolean hasPath,
                              int maxParams, boolean semicolonIsNormalChar) {
        this(
                builder()
                        .hasPath(hasPath)
                        .charset(charset)
                        .maxParams(maxParams)
                        .semicolonIsNormalChar(semicolonIsNormalChar),
                uri);
    }

    /**
     * Creates a new decoder that decodes the specified URI. The decoder will
     * assume that the query string is encoded in UTF-8.
     */
    public QueryStringDecoder(URI uri) {
        this(builder(), uri);
    }

    /**
     * Creates a new decoder that decodes the specified URI encoded in the
     * specified charset.
     */
    public QueryStringDecoder(URI uri, Charset charset) {

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free