Uses of Class
org.miaixz.bus.core.codec.PercentCodec
Packages that use PercentCodec
-
Uses of PercentCodec in org.miaixz.bus.core.codec
Methods in org.miaixz.bus.core.codec that return PercentCodecMethods in org.miaixz.bus.core.codec with parameters of type PercentCodecModifier and TypeMethodDescriptionstatic PercentCodec.BuilderPercentCodec.Builder.of(PercentCodec codec) 从已知PercentCodec创建PercentCodec,会复制给定PercentCodec的安全字符PercentCodec.Builder.or(PercentCodec otherCodec) 增加安全字符到当前的PercentCodec -
Uses of PercentCodec in org.miaixz.bus.core.net.url
Fields in org.miaixz.bus.core.net.url declared as PercentCodecModifier and TypeFieldDescriptionstatic final PercentCodecUrlQuery.ALLquery中的value,默认除"-", "_", ".", "*"外都编码 这个类似于JDK提供的URLEncoderstatic final PercentCodecRFC3986.FRAGMENTfragment = pchar / "/" / "?"static final PercentCodecRFC3986.GEN_DELIMS通用URI组件分隔符 gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"static final PercentCodecRFC3986.PATHpath = segment / "/"static final PercentCodecRFC3986.PCHARpchar = unreserved / pct-encoded / sub-delims / ":" / "@"static final PercentCodecRFC3986.QUERYquery = pchar / "/" / "?"static final PercentCodecRFC3986.QUERY_PARAM_NAMEquery中的key key不能包含"&" 和 "="static final PercentCodecRFC3986.QUERY_PARAM_NAME_STRICTquery中的key编码器,严格模式,key中不能包含任何分隔符。static final PercentCodecRFC3986.QUERY_PARAM_VALUEquery中的value value不能包含"&",可以包含 "="static final PercentCodecRFC3986.QUERY_PARAM_VALUE_STRICTquery中的value编码器,严格模式,value中不能包含任何分隔符。static final PercentCodecRFC3986.RESERVEDreserved = gen-delims / sub-delims see:https://www.ietf.org/rfc/rfc3986.html#section-2.2static final PercentCodecRFC3986.SEGMENTsegment = pchar see: https://www.ietf.org/rfc/rfc3986.html#section-3.3static final PercentCodecRFC3986.SEGMENT_NZ_NCsegment-nz-nc = SEGMENT ; non-zero-length segment without any colon ":"static final PercentCodecRFC3986.SUB_DELIMSsub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="static final PercentCodecRFC3986.UNRESERVED非保留字符,即URI中不作为分隔符使用的字符 unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" see: https://www.ietf.org/rfc/rfc3986.html#section-2.3Methods in org.miaixz.bus.core.net.url with parameters of type PercentCodecModifier and TypeMethodDescriptionUrlQuery.build(PercentCodec keyCoder, PercentCodec valueCoder, Charset charset) 构建URL查询字符串,即将key-value键值对转换为key1=v1&key2=v2&key3=v3形式。 对于null处理规则如下: 如果key为null,则这个键值对忽略 如果value为null,只保留key,如key1对应value为null生成类似于key1&key2=v2形式UrlQuery.build(PercentCodec keyCoder, PercentCodec valueCoder, Charset charset, boolean encodePercent) 构建URL查询字符串,即将key-value键值对转换为key1=v1&key2=v2&key3=v3形式。 对于null处理规则如下: 如果key为null,则这个键值对忽略 如果value为null,只保留key,如key1对应value为null生成类似于key1&key2=v2形式