Class ClientEndpoint.Builder
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase<ClientEndpoint.Builder, ClientEndpoint>
io.helidon.declarative.codegen.model.http.HttpAnnotated.BuilderBase<ClientEndpoint.Builder, ClientEndpoint>
io.helidon.declarative.codegen.model.http.RestEndpoint.BuilderBase<ClientEndpoint.Builder, ClientEndpoint>
io.helidon.declarative.codegen.model.http.ClientEndpoint.BuilderBase<ClientEndpoint.Builder, ClientEndpoint>
io.helidon.declarative.codegen.model.http.ClientEndpoint.Builder
- All Implemented Interfaces:
Prototype.Builder<ClientEndpoint.Builder, ClientEndpoint>, Builder<ClientEndpoint.Builder, ClientEndpoint>, Supplier<ClientEndpoint>
- Enclosing interface:
ClientEndpoint
public static class ClientEndpoint.Builder
extends ClientEndpoint.BuilderBase<ClientEndpoint.Builder, ClientEndpoint>
implements Builder<ClientEndpoint.Builder, ClientEndpoint>
Fluent API builder for
ClientEndpoint.-
Nested Class Summary
Nested classes/interfaces inherited from class ClientEndpoint.BuilderBase
ClientEndpoint.BuilderBase.ClientEndpointImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class RestEndpoint.BuilderBase
RestEndpoint.BuilderBase.RestEndpointImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class HttpAnnotated.BuilderBase
HttpAnnotated.BuilderBase.HttpAnnotatedImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class ModelElement.BuilderBase
ModelElement.BuilderBase.ModelElementImplModifier 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 ClientEndpoint.BuilderBase
clearClientName, clientName, clientName, configKey, configKey, from, from, preBuildPrototype, toString, uri, uri, validatePrototypeModifier and TypeMethodDescriptionClear existing value of clientName.Name of a web client that should be injected and used by the generated typed client.clientName(String clientName) Name of a web client that should be injected and used by the generated typed client.Configuration key to use at runtime.Configuration key to use at runtime.from(ClientEndpoint prototype) Update this builder from an existing prototype instance.from(ClientEndpoint.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.toString()uri()Configured URI.Configured URI.protected voidValidates required properties.Methods inherited from class RestEndpoint.BuilderBase
addMethod, addMethod, addMethods, clearMethods, from, from, methods, methodsModifier and TypeMethodDescriptionaddMethod(RestMethod method) Methods that have a rest annotation (HTTP method).addMethod(Consumer<RestMethod.Builder> consumer) Methods that have a rest annotation (HTTP method).addMethods(List<? extends RestMethod> methods) Methods that have a rest annotation (HTTP method).Clear all methods.from(RestEndpoint prototype) Update this builder from an existing prototype instance.from(RestEndpoint.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.methods()Methods that have a rest annotation (HTTP method).methods(List<? extends RestMethod> methods) Methods that have a rest annotation (HTTP method).Methods inherited from class HttpAnnotated.BuilderBase
addComputedHeader, addComputedHeaders, addConsume, addConsumes, addHeader, addHeaders, addProduce, addProduces, clearComputedHeaders, clearConsumes, clearHeaders, clearPath, clearProduces, computedHeaders, computedHeaders, consumes, consumes, from, from, headers, headers, path, path, produces, producesModifier and TypeMethodDescriptionaddComputedHeader(ComputedHeader computedHeader) List of computed header values.addComputedHeaders(List<? extends ComputedHeader> computedHeaders) List of computed header values.addConsume(String consume) List of consumed media types (from server endpoint point of view).addConsumes(List<String> consumes) List of consumed media types (from server endpoint point of view).addHeader(HeaderValue header) List of configured header values.addHeaders(List<? extends HeaderValue> headers) List of configured header values.addProduce(String produce) List of produced media types (from server endpoint point of view).addProduces(List<String> produces) List of produced media types (from server endpoint point of view).Clear all computedHeaders.Clear all consumes.Clear all headers.Clear existing value of path.Clear all produces.List of computed header values.computedHeaders(List<? extends ComputedHeader> computedHeaders) List of computed header values.consumes()List of consumed media types (from server endpoint point of view).List of consumed media types (from server endpoint point of view).from(HttpAnnotated prototype) Update this builder from an existing prototype instance.from(HttpAnnotated.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.headers()List of configured header values.headers(List<? extends HeaderValue> headers) List of configured header values.path()Path of the endpoint/method (optional).Path of the endpoint/method (optional).produces()List of produced media types (from server endpoint point of view).List of produced media types (from server endpoint point of view).Methods inherited from class ModelElement.BuilderBase
addAnnotation, addAnnotation, addAnnotations, annotations, annotations, clearAnnotations, from, from, type, type, type, typeModifier and TypeMethodDescriptionaddAnnotation(Annotation annotation) All annotations on this element, and inherited from supertype/interface and annotations.addAnnotation(Consumer<Annotation.Builder> consumer) All annotations on this element, and inherited from supertype/interface and annotations.addAnnotations(Set<? extends Annotation> annotations) All annotations on this element, and inherited from supertype/interface and annotations.All annotations on this element, and inherited from supertype/interface and annotations.annotations(Set<? extends Annotation> annotations) All annotations on this element, and inherited from supertype/interface and annotations.Clear all annotations.from(ModelElement prototype) Update this builder from an existing prototype instance.from(ModelElement.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.type()Type of this element.Type of this element.type(Consumer<TypeInfo.Builder> consumer) Type of this element.Type of this element.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ClientEndpointget()default ClientEndpoint.Builderidentity()Instance of this builder as the correct type.default ClientEndpoint.Builderupdate(Consumer<ClientEndpoint.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault ClientEndpoint.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<ClientEndpoint.Builder, ClientEndpoint>- 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<ClientEndpoint.Builder, ClientEndpoint>- Returns:
- instance of the built type
-