Class RFC3986

java.lang.Object
org.miaixz.bus.core.net.url.RFC3986

public class RFC3986 extends Object
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

    • GEN_DELIMS

      public static final PercentCodec GEN_DELIMS
      通用URI组件分隔符 gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"
    • SUB_DELIMS

      public static final PercentCodec SUB_DELIMS
      sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
    • RESERVED

      public static final PercentCodec RESERVED
      reserved = gen-delims / sub-delims see:https://www.ietf.org/rfc/rfc3986.html#section-2.2
    • UNRESERVED

      public static final PercentCodec UNRESERVED
      非保留字符,即URI中不作为分隔符使用的字符 unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" see: https://www.ietf.org/rfc/rfc3986.html#section-2.3
    • PCHAR

      public static final PercentCodec PCHAR
      pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
    • SEGMENT

      public static final PercentCodec SEGMENT
    • SEGMENT_NZ_NC

      public static final PercentCodec SEGMENT_NZ_NC
      segment-nz-nc = SEGMENT ; non-zero-length segment without any colon ":"
    • PATH

      public static final PercentCodec PATH
      path = segment / "/"
    • QUERY

      public static final PercentCodec QUERY
      query = pchar / "/" / "?"
    • FRAGMENT

      public static final PercentCodec FRAGMENT
      fragment = pchar / "/" / "?"
    • QUERY_PARAM_VALUE

      public static final PercentCodec QUERY_PARAM_VALUE
      query中的value value不能包含"&",可以包含 "="
    • QUERY_PARAM_NAME

      public static final PercentCodec QUERY_PARAM_NAME
      query中的key key不能包含"&" 和 "="
    • QUERY_PARAM_VALUE_STRICT

      public static final PercentCodec QUERY_PARAM_VALUE_STRICT
      query中的value编码器,严格模式,value中不能包含任何分隔符。
    • QUERY_PARAM_NAME_STRICT

      public static final PercentCodec QUERY_PARAM_NAME_STRICT
      query中的key编码器,严格模式,key中不能包含任何分隔符。
  • Constructor Details

    • RFC3986

      public RFC3986()