java.lang.Object
io.helidon.webclient.api.ClientUri
- All Implemented Interfaces:
Prototype.Api
,UriInfo
URI abstraction for WebClient.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.uri.UriInfo
UriInfo.Builder, UriInfo.BuilderBase<BUILDER extends UriInfo.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends UriInfo> -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientUri
create()
Create an empty URI helper.static ClientUri
Create a new client uri.static ClientUri
Create a new client uri.static ClientUri
Create a new client URI from an existing URI.fragment()
fragment
(UriFragment fragment) Configure the fragment for this URI.Configure the fragment for this URI, using its decoded form ("human readable").host()
Host of this URI.path()
Path of this URI.Encoded path with query and fragment.int
port()
port
(int port) Port of this URI.query()
Replaces the current URI with values from the provided URI.Resolve the provided URI against this URI.resolvePath
(String path) Resolve the provided path against the current path of this URI.scheme()
Scheme of this URI.skipUriEncoding
(boolean skipUriEncoding) Whether to skip uri encoding.toString()
toUri()
Convert instance toURI
.URI query that can update values.
-
Method Details
-
create
Create an empty URI helper.- Returns:
- uri helper
-
create
Create a new client uri.- Parameters:
baseUri
- base URI- Returns:
- a new client uri
-
create
Create a new client uri.- Parameters:
baseUri
- base URI- Returns:
- a new client uri
-
create
Create a new client URI from an existing URI.- Parameters:
baseUri
- base URI- Returns:
- a new client uri
-
toString
-
toUri
Convert instance toURI
.- Returns:
- the converted URI
-
scheme
Scheme of this URI.- Parameters:
scheme
- to use (such ashttp
)- Returns:
- updated instance
-
host
Host of this URI.- Parameters:
host
- to connect to- Returns:
- updated instance
-
port
Port of this URI.- Parameters:
port
- to connect to- Returns:
- updated instance
-
path
Path of this URI.- Parameters:
path
- path to use- Returns:
- updated instance
-
skipUriEncoding
Whether to skip uri encoding.- Parameters:
skipUriEncoding
- skip uri encoding- Returns:
- updated instance
-
resolve
Resolve the provided URI against this URI.- Parameters:
uri
- URI to use- Returns:
- updated instance
-
resolvePath
Resolve the provided path against the current path of this URI.- Parameters:
path
- to resolve- Returns:
- updated URI
-
resolve
Replaces the current URI with values from the provided URI.- Parameters:
uri
- URI to use- Returns:
- updated instance
-
scheme
-
host
-
query
-
fragment
-
authority
-
port
public int port() -
path
-
fragment
Configure the fragment for this URI.- Parameters:
fragment
- fragment to use- Returns:
- updated URI
-
fragment
Configure the fragment for this URI, using its decoded form ("human readable"). If you have an encoded fragment, please usefragment(io.helidon.common.uri.UriFragment)
.- Parameters:
fragment
- decoded fragment- Returns:
- updated URI
-
writeableQuery
URI query that can update values.- Returns:
- writeable query
-
pathWithQueryAndFragment
Encoded path with query and fragment.- Returns:
- string containing encoded path with query
-