Package | Description |
---|---|
org.dromara.hutool.core.codec |
编码解码封装编码封装
|
org.dromara.hutool.core.net.url |
URL相关工具
|
Modifier and Type | Method and Description |
---|---|
PercentCodec |
PercentCodec.Builder.build() |
Modifier and Type | Method and Description |
---|---|
static PercentCodec.Builder |
PercentCodec.Builder.of(PercentCodec codec)
从已知PercentCodec创建PercentCodec,会复制给定PercentCodec的安全字符
|
PercentCodec.Builder |
PercentCodec.Builder.or(PercentCodec otherCodec)
增加安全字符到当前的PercentCodec
|
Modifier and Type | Field and Description |
---|---|
static PercentCodec |
FormUrlencoded.ALL
query中的value,默认除"-", "_", "
|
static PercentCodec |
RFC3986.FRAGMENT
fragment = pchar / "/" / "?"
|
static PercentCodec |
RFC3986.GEN_DELIMS
通用URI组件分隔符
gen-delims = ":" / "/" / "?" |
static PercentCodec |
RFC3986.PATH
path = segment / "/"
|
static PercentCodec |
RFC3986.PCHAR
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
static PercentCodec |
RFC3986.QUERY
query = pchar / "/" / "?"
|
static PercentCodec |
RFC3986.QUERY_PARAM_NAME
query中的key
key不能包含" & " 和 "=" |
static PercentCodec |
RFC3986.QUERY_PARAM_NAME_STRICT
query中的key编码器,严格模式,key中不能包含任何分隔符。
|
static PercentCodec |
RFC3986.QUERY_PARAM_VALUE
query中的value
value不能包含" & ",可以包含 "=" |
static PercentCodec |
RFC3986.QUERY_PARAM_VALUE_STRICT
query中的value编码器,严格模式,value中不能包含任何分隔符。
|
static PercentCodec |
RFC3986.RESERVED
reserved = gen-delims / sub-delims
see:https://www.ietf.org/rfc/rfc3986.html#section-2.2 |
static PercentCodec |
RFC3986.SEGMENT
segment = pchar
see: https://www.ietf.org/rfc/rfc3986.html#section-3.3 |
static PercentCodec |
RFC3986.SEGMENT_NZ_NC
segment-nz-nc = SEGMENT ; non-zero-length segment without any colon ":"
|
static PercentCodec |
RFC3986.SUB_DELIMS
sub-delims = "!"
|
static PercentCodec |
RFC3986.UNRESERVED
非保留字符,即URI中不作为分隔符使用的字符
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" see: https://www.ietf.org/rfc/rfc3986.html#section-2.3 |
Modifier and Type | Method and Description |
---|---|
String |
UrlQuery.build(PercentCodec keyCoder,
PercentCodec valueCoder,
Charset charset)
构建URL查询字符串,即将key-value键值对转换为
key1=v1&key2=v2&key3=v3 形式。 |
Copyright © 2025. All rights reserved.