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
ConstructorsModifierConstructorDescriptionprotected
UriInfoImpl
(UriInfo.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptiondefault String
Authority (host:port) of this URI.boolean
fragment()
Uri Fragment of the request.int
hashCode()
host()
Host part of authority of the request.path()
Path of the request.int
port()
Port part of authority of the request.query()
URI Query of the request.scheme()
Scheme of the request (http
,https
).toString()
default URI
toUri()
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:UriInfo
Scheme of the request (http
,https
). -
host
Description copied from interface:UriInfo
Host part of authority of the request. -
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. -
query
Description copied from interface:UriInfo
URI Query of the request. -
fragment
Description copied from interface:UriInfo
Uri 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
-