Class ClientUri
java.lang.Object
io.helidon.webclient.api.ClientUri
- All Implemented Interfaces:
Prototype.Api, UriInfo
-
Nested Class Summary
Nested classes/interfaces inherited from interface UriInfo
UriInfo.Builder, UriInfo.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forUriInfo.static classUriInfo.BuilderBase<BUILDER extends UriInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends UriInfo>Fluent API builder base forUriInfo. -
Method Summary
Modifier and TypeMethodDescriptionAuthority (host:port) of this URI.static ClientUricreate()Create an empty URI helper.static ClientUriCreate a new client uri.static ClientUriCreate a new client uri.static ClientUriCreate 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").booleanhasQuery()Whether this URI has a query delimiter.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.intport()Port part of authority of the request.port(int port) Port of this URI.query()URI Query of the request.Query as serialized into the HTTP request target.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
-
create
-
create
-
toString
-
toUri
-
scheme
-
host
-
port
Port of this URI.- Parameters:
port- to connect to- Returns:
- updated instance
-
path
-
skipUriEncoding
Whether to skip uri encoding.- Parameters:
skipUriEncoding- skip uri encoding- Returns:
- updated instance
-
resolve
-
resolvePath
-
resolve
-
scheme
-
host
-
query
-
requestTargetQuery
Query as serialized into the HTTP request target.- Returns:
- request target query
-
hasQuery
public boolean hasQuery()Whether this URI has a query delimiter.- Returns:
- whether query delimiter is present
-
fragment
Description copied from interface:UriInfoUri Fragment of the request. -
authority
-
port
public int port()Description copied from interface:UriInfoPort 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()- forhttpthe port would be80, and forhttpsthe port would be443. If the scheme is different, if it ends withs, port would be443, otherwise80. -
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
-