Class UriInfo.Builder
java.lang.Object
io.helidon.common.uri.UriInfo.BuilderBase<UriInfo.Builder, UriInfo>
io.helidon.common.uri.UriInfo.Builder
- All Implemented Interfaces:
Prototype.Builder<UriInfo.Builder, UriInfo>, Builder<UriInfo.Builder, UriInfo>, Supplier<UriInfo>
- Enclosing interface:
UriInfo
public static class UriInfo.Builder
extends UriInfo.BuilderBase<UriInfo.Builder, UriInfo>
implements Builder<UriInfo.Builder, UriInfo>
Fluent API builder for
UriInfo.-
Nested Class Summary
Nested classes/interfaces inherited from class UriInfo.BuilderBase
UriInfo.BuilderBase.UriInfoImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class UriInfo.BuilderBase
authority, fragment, fragment, from, from, host, host, path, path, path, port, port, preBuildPrototype, query, query, scheme, scheme, toString, validatePrototypeModifier 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 Builder
get, identity, updateModifier and TypeMethodDescriptiondefault UriInfoget()default UriInfo.Builderidentity()Instance of this builder as the correct type.default UriInfo.Builderupdate(Consumer<UriInfo.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault UriInfo.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<UriInfo.Builder, UriInfo>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<UriInfo.Builder, UriInfo>- Returns:
- instance of the built type
-