java.lang.Object
io.helidon.common.uri.UriInfo.BuilderBase.UriInfoImpl
- All Implemented Interfaces:
Prototype.Api,UriInfo
- Enclosing class:
UriInfo.BuilderBase<BUILDER extends UriInfo.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends UriInfo>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
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> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUriInfoImpl(UriInfo.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringAuthority (host:port) of this URI.booleanfragment()Uri Fragment of the request.inthashCode()host()Host part of authority of the request.path()Path of the request.intport()Port part of authority of the request.query()URI Query of the request.scheme()Scheme of the request (http,https).toString()default URItoUri()Create a URI from information in this URI info.
-
Constructor Details
-
UriInfoImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
scheme
Description copied from interface:UriInfoScheme of the request (http,https). -
host
Description copied from interface:UriInfoHost part of authority of the request. -
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
Description copied from interface:UriInfoPath of the request. -
query
Description copied from interface:UriInfoURI Query of the request. -
fragment
Description copied from interface:UriInfoUri Fragment of the request. -
toString
-
equals
-
hashCode
public int hashCode() -
authority
Authority (host:port) of this URI.- Returns:
- authority
-
toUri
Create a URI from information in this URI info. Creating a URI is a relatively expensive operation (as it always validates and does some additional operations).- Returns:
- a new URI
-