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()
Uri Fragment of the request.fragment
(UriFragment fragment) Configure the fragment for this URI.Configure the fragment for this URI, using its decoded form ("human readable").host()
Host part of authority of the request.Host of this URI.path()
Path of the request.Path of this URI.Encoded path with query and fragment.int
port()
Port part of authority of the request.port
(int port) Port of this URI.query()
URI Query of the request.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 the request (http
,https
).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
Description copied from interface:UriInfo
Scheme of the request (http
,https
). -
host
Description copied from interface:UriInfo
Host part of authority of the request. -
query
Description copied from interface:UriInfo
URI Query of the request. -
fragment
Description copied from interface:UriInfo
Uri Fragment of the request. -
authority
-
port
public int port()Description copied from interface:UriInfo
Port part of authority of the request. If port is not defined (e.g. authority without a port is used, or none is configured), the default port is used based on the definedUriInfo.scheme()
- forhttp
the port would be80
, and forhttps
the port would be443
. If the scheme is different, if it ends withs
, port would be443
, otherwise80
. -
path
Description copied from interface:UriInfo
Path of the request. -
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
-