Class ClientEndpoint.BuilderBase<BUILDER extends ClientEndpoint.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ClientEndpoint>
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.declarative.codegen.model.http.HttpAnnotated.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.declarative.codegen.model.http.RestEndpoint.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.declarative.codegen.model.http.ClientEndpoint.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:
ClientEndpoint.Builder
- Enclosing interface:
ClientEndpoint
public abstract static class ClientEndpoint.BuilderBase<BUILDER extends ClientEndpoint.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ClientEndpoint>
extends RestEndpoint.BuilderBase<BUILDER,PROTOTYPE>
implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for
ClientEndpoint.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.declarative.codegen.model.http.RestEndpoint.BuilderBase
RestEndpoint.BuilderBase.RestEndpointImplNested classes/interfaces inherited from class io.helidon.declarative.codegen.model.http.HttpAnnotated.BuilderBase
HttpAnnotated.BuilderBase.HttpAnnotatedImplNested classes/interfaces inherited from class io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase
ModelElement.BuilderBase.ModelElementImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClear existing value of this property.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 io.helidon.declarative.codegen.model.http.RestEndpoint.BuilderBase
addMethod, addMethod, addMethods, from, from, methods, methodsMethods inherited from class io.helidon.declarative.codegen.model.http.HttpAnnotated.BuilderBase
addComputedHeader, addComputedHeaders, addConsume, addConsumes, addHeader, addHeaders, addProduce, addProduces, clearPath, computedHeaders, computedHeaders, consumes, consumes, from, from, headers, headers, path, path, produces, producesMethods inherited from class io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase
addAnnotation, addAnnotation, addAnnotations, annotations, annotations, from, from, type, type, type, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
uri
Configured URI.- Parameters:
uri- URI if configured- Returns:
- updated builder instance
- See Also:
-
configKey
Configuration key to use at runtime.- Parameters:
configKey- configuration key to override annotation based values- Returns:
- updated builder instance
- See Also:
-
clearClientName
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
clientName
Name of a web client that should be injected and used by the generated typed client.- Parameters:
clientName- rest client name- Returns:
- updated builder instance
- See Also:
-
uri
Configured URI.- Returns:
- the uri
-
configKey
Configuration key to use at runtime.- Returns:
- the config key
-
clientName
Name of a web client that should be injected and used by the generated typed client.- Returns:
- the client name
-
toString
- Overrides:
toStringin classRestEndpoint.BuilderBase<BUILDER extends ClientEndpoint.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ClientEndpoint>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classRestEndpoint.BuilderBase<BUILDER extends ClientEndpoint.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ClientEndpoint>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classRestEndpoint.BuilderBase<BUILDER extends ClientEndpoint.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ClientEndpoint>
-