类 OpaqueUriComponents
java.lang.Object
cn.taketoday.web.util.UriComponents
cn.taketoday.web.util.OpaqueUriComponents
- 所有已实现的接口:
Serializable
Extension of
UriComponents for opaque URIs.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Phillip Webb
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.web.util.UriComponents
UriComponents.UriTemplateVariables -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidSet all components of the given UriComponentsBuilder.A variant ofUriComponents.encode()with a charset other than "UTF-8".booleanprotected UriComponentsexpandInternal(UriComponents.UriTemplateVariables uriVariables) Replace all URI template variables with the values from the givenUriComponents.UriTemplateVariables.getHost()Return the host.getPath()Return the path.Return the list of path segments.intgetPort()Return the port.getQuery()Return the query.Return the map of query parameters.Return the scheme specific part.Return the user info.inthashCode()Normalize the path removing sequences like "path/..".toUri()Create aURIfrom this instance as follows:Concatenate all URI components to return the fully formed URI String.从类继承的方法 cn.taketoday.web.util.UriComponents
encode, expand, expand, expand, expandUriComponent, expandUriComponent, getFragment, getScheme, toString
-
字段详细资料
-
QUERY_PARAMS_NONE
-
ssp
-
-
构造器详细资料
-
OpaqueUriComponents
-
-
方法详细资料
-
getSchemeSpecificPart
从类复制的说明:UriComponentsReturn the scheme specific part. Can benull.- 指定者:
getSchemeSpecificPart在类中UriComponents
-
getUserInfo
从类复制的说明:UriComponentsReturn the user info. Can benull.- 指定者:
getUserInfo在类中UriComponents
-
getHost
从类复制的说明:UriComponentsReturn the host. Can benull.- 指定者:
getHost在类中UriComponents
-
getPort
public int getPort()从类复制的说明:UriComponentsReturn the port.-1if no port has been set.- 指定者:
getPort在类中UriComponents
-
getPath
从类复制的说明:UriComponentsReturn the path. Can benull.- 指定者:
getPath在类中UriComponents
-
getPathSegments
从类复制的说明:UriComponentsReturn the list of path segments. Empty if no path has been set.- 指定者:
getPathSegments在类中UriComponents
-
getQuery
从类复制的说明:UriComponentsReturn the query. Can benull.- 指定者:
getQuery在类中UriComponents
-
getQueryParams
从类复制的说明:UriComponentsReturn the map of query parameters. Empty if no query has been set.- 指定者:
getQueryParams在类中UriComponents
-
encode
从类复制的说明:UriComponentsA variant ofUriComponents.encode()with a charset other than "UTF-8".- 指定者:
encode在类中UriComponents- 参数:
charset- the charset to use for encoding- 另请参阅:
-
expandInternal
从类复制的说明:UriComponentsReplace all URI template variables with the values from the givenUriComponents.UriTemplateVariables.- 指定者:
expandInternal在类中UriComponents- 参数:
uriVariables- the URI template values- 返回:
- the expanded URI components
-
normalize
从类复制的说明:UriComponentsNormalize the path removing sequences like "path/..". Note that normalization is applied to the full path, and not to individual path segments.- 指定者:
normalize在类中UriComponents- 另请参阅:
-
StringUtils.cleanPath(String)
-
toUriString
从类复制的说明:UriComponentsConcatenate all URI components to return the fully formed URI String.This method amounts to simple String concatenation of the current URI component values and as such the result may contain illegal URI characters, for example if URI variables have not been expanded or if encoding has not been applied via
UriComponentsBuilder.encode()orUriComponents.encode().- 指定者:
toUriString在类中UriComponents
-
toUri
从类复制的说明:UriComponentsCreate aURIfrom this instance as follows:If the current instance is
encoded, form the full URI String viaUriComponents.toUriString(), and then pass it to the single argumentURIconstructor which preserves percent encoding.If not yet encoded, pass individual URI component values to the multi-argument
URIconstructor which quotes illegal characters that cannot appear in their respective URI component.- 指定者:
toUri在类中UriComponents
-
copyToUriComponentsBuilder
从类复制的说明:UriComponentsSet all components of the given UriComponentsBuilder.- 指定者:
copyToUriComponentsBuilder在类中UriComponents
-
equals
-
hashCode
public int hashCode()
-