Class UriInfo.BuilderBase<BUILDER extends UriInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends UriInfo>
java.lang.Object
io.helidon.common.uri.UriInfo.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
UriInfo.Builder
- Enclosing interface:
UriInfo
public abstract static class UriInfo.BuilderBase<BUILDER extends UriInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends UriInfo>
extends Object
implements Prototype.Builder<BUILDER, PROTOTYPE>
Fluent API builder base for
UriInfo.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAuthority of the request, to be converted to host and port.fragment()Uri Fragment of the request.fragment(UriFragment fragment) Uri Fragment of the request.Update this builder from an existing prototype instance.from(UriInfo.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.host()Host part of authority of the request.Host part of authority of the request.path()Path of the request.Path of the request.Path of the request, to be converted toUriPath.intport()Port part of authority of the request.port(int port) Port part of authority of the request.protected voidHandles providers and decorators.query()URI Query of the request.URI Query of the request.scheme()Scheme of the request (http,https).Scheme of the request (http,https).toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
authority
-
path
-
scheme
-
host
-
port
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 definedscheme()- forhttpthe port would be80, and forhttpsthe port would be443. If the scheme is different, if it ends withs, port would be443, otherwise80.- Parameters:
port- port- Returns:
- updated builder instance
- See Also:
-
path
-
query
-
fragment
Uri Fragment of the request.- Parameters:
fragment- fragment, may beempty- Returns:
- updated builder instance
- See Also:
-
scheme
-
host
-
port
public int port()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 definedscheme()- forhttpthe port would be80, and forhttpsthe port would be443. If the scheme is different, if it ends withs, port would be443, otherwise80.- Returns:
- port
-
path
-
query
-
fragment
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-