Class JavaUri
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.pekko.http.javadsl.model.UriUri.ParsingMode
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddPathSegment(String segment) Returns a copy of this instance with a path segment added at the end.abstract static Rapply(T1 v1) asScala()Returns the Scala DSL representation of this Uri.fragment()Returns the fragment part of this Uri.Returns a copy of this instance with a new fragment.Returns a copy of this instance with a new optional fragment.getHost()Returns the host of this instanceReturns the path of this instanceintgetPort()Returns the port of this instanceReturns the scheme of this instanceReturns the user info of this instancehost()Returns the Host of this Uri.Returns a copy of this instance with a new host.Returns a copy of this instance with a new Host.booleanReturns if this is an absolute Uri.booleanisEmpty()Returns if this is an empty Uri.booleanReturns if this is a relative Uri.path()Returns a String representation of the path of this Uri.Returns a copy of this instance with a new path.Returns the path segments of this Uri as an Iterable.intport()Returns the port of this Uri.port(int port) Returns a copy of this instance with a new port.query()Returns the parsed Query instance of this Uri.query(Charset charset, Uri.ParsingMode mode) Returns the parsed Query instance of this Uri using the given charset and parsing mode.Returns a copy of this instance with a new query.queryString(Charset charset) Returns a decoded String representation of the query of this Uri.Returns an undecoded String representation of the query of this Uri.rawQueryString(String rawQuery) Returns a copy of this instance with a new query.rawQueryString(String rawQuery, boolean strict) Returns a copy of this instance with a new query.scheme()Returns the scheme of this Uri.Returns a copy of this instance with a new scheme.Returns a copy of this instance that is relative.toString()uri()userInfo()Returns the user-info of this Uri.Returns a copy of this instance with new user-info.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
JavaUri
 
- 
- 
Method Details- 
applypublic abstract static R apply(T1 v1) 
- 
uri
- 
isRelativepublic boolean isRelative()Description copied from class:UriReturns if this is a relative Uri.- Specified by:
- isRelativein class- Uri
 
- 
isAbsolutepublic boolean isAbsolute()Description copied from class:UriReturns if this is an absolute Uri.- Specified by:
- isAbsolutein class- Uri
 
- 
isEmptypublic boolean isEmpty()Description copied from class:UriReturns if this is an empty Uri.
- 
schemeDescription copied from class:UriReturns the scheme of this Uri.
- 
hostDescription copied from class:UriReturns the Host of this Uri.
- 
portpublic int port()Description copied from class:UriReturns the port of this Uri.
- 
userInfoDescription copied from class:UriReturns the user-info of this Uri.
- 
pathDescription copied from class:UriReturns a String representation of the path of this Uri.
- 
getSchemeDescription copied from class:UriReturns the scheme of this instance
- 
getHostDescription copied from class:UriReturns the host of this instance
- 
getPortpublic int getPort()Description copied from class:UriReturns the port of this instance
- 
getUserInfoDescription copied from class:UriReturns the user info of this instance- Specified by:
- getUserInfoin class- Uri
 
- 
getPathStringDescription copied from class:UriReturns the path of this instance- Specified by:
- getPathStringin class- Uri
 
- 
asScalaDescription copied from class:UriReturns the Scala DSL representation of this Uri.
- 
pathSegmentsDescription copied from class:UriReturns the path segments of this Uri as an Iterable.- Specified by:
- pathSegmentsin class- Uri
 
- 
rawQueryStringDescription copied from class:UriReturns an undecoded String representation of the query of this Uri.- Specified by:
- rawQueryStringin class- Uri
 
- 
queryStringDescription copied from class:UriReturns a decoded String representation of the query of this Uri.- Specified by:
- queryStringin class- Uri
 
- 
queryDescription copied from class:UriReturns the parsed Query instance of this Uri.
- 
queryDescription copied from class:UriReturns the parsed Query instance of this Uri using the given charset and parsing mode.
- 
fragmentDescription copied from class:UriReturns the fragment part of this Uri.
- 
t
- 
schemeDescription copied from class:UriReturns a copy of this instance with a new scheme.
- 
hostDescription copied from class:UriReturns a copy of this instance with a new Host.
- 
hostDescription copied from class:UriReturns a copy of this instance with a new host.
- 
portDescription copied from class:UriReturns a copy of this instance with a new port.
- 
userInfoDescription copied from class:UriReturns a copy of this instance with new user-info.
- 
pathDescription copied from class:UriReturns a copy of this instance with a new path.
- 
toRelativeDescription copied from class:UriReturns a copy of this instance that is relative.- Specified by:
- toRelativein class- Uri
 
- 
rawQueryStringDescription copied from class:UriReturns a copy of this instance with a new query.Characters that are not within the range described at https://tools.ietf.org/html/rfc3986#section-3.4 should be percent-encoded. Characters that are in that range may or may not be percent-encoded, and depending on how the query string is parsed this might be relevant: for example, when interpreting the query string as 'key=value' pairs you could use the percent-encoded '=' ('%22) to include a '=' in the key or value. When characters are encountered that are outside of the RFC3986 range they are automatically percent-encoded, but be aware that relying on this is usually a programming error. - Specified by:
- rawQueryStringin class- Uri
 
- 
rawQueryStringDescription copied from class:UriReturns a copy of this instance with a new query.Characters that are not within the range described at https://tools.ietf.org/html/rfc3986#section-3.4 should be percent-encoded. Characters that are in that range may or may not be percent-encoded, and depending on how the query string is parsed this might be relevant: for example, when interpreting the query string as 'key=value' pairs you could use the percent-encoded '=' ('%22) to include a '=' in the key or value. - Specified by:
- rawQueryStringin class- Uri
- strict- depending on the 'strict' flag, characters outside of the range allowed by RFC3986 will either cause a `IllegalUriException` or be automatically percent-encoded. Be aware that relying on automatic percent-encoding is usually a programming error.
 
- 
queryDescription copied from class:UriReturns a copy of this instance with a new query.
- 
addPathSegmentDescription copied from class:UriReturns a copy of this instance with a path segment added at the end.- Specified by:
- addPathSegmentin class- Uri
 
- 
fragmentDescription copied from class:UriReturns a copy of this instance with a new optional fragment.
- 
fragmentDescription copied from class:UriReturns a copy of this instance with a new fragment.
- 
toString
 
-