Class HttpAnnotated.BuilderBase<BUILDER extends HttpAnnotated.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpAnnotated>
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase<BUILDER, PROTOTYPE>
io.helidon.declarative.codegen.model.http.HttpAnnotated.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:
HttpAnnotated.Builder, RestEndpoint.BuilderBase, RestMethod.BuilderBase
- Enclosing interface:
HttpAnnotated
public abstract static class HttpAnnotated.BuilderBase<BUILDER extends HttpAnnotated.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpAnnotated>
extends ModelElement.BuilderBase<BUILDER, PROTOTYPE>
implements Prototype.Builder<BUILDER, PROTOTYPE>
Fluent API builder base for
HttpAnnotated.-
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 ModelElement.BuilderBase
ModelElement.BuilderBase.ModelElementImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier 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).protected voidHandles providers and decorators.produces()List of produced media types (from server endpoint point of view).List of produced media types (from server endpoint point of view).toString()protected voidValidates required properties.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 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
-
clearProduces
-
produces
-
addProduces
-
addProduce
-
clearConsumes
-
consumes
-
addConsumes
-
addConsume
-
clearHeaders
-
headers
List of configured header values.- Parameters:
headers- header values- Returns:
- updated builder instance
- See Also:
-
addHeaders
List of configured header values.- Parameters:
headers- header values- Returns:
- updated builder instance
- See Also:
-
addHeader
List of configured header values.- Parameters:
header- add single header values- Returns:
- updated builder instance
- See Also:
-
clearComputedHeaders
Clear all computedHeaders.- Returns:
- updated builder instance
- See Also:
-
computedHeaders
List of computed header values.- Parameters:
computedHeaders- computed header values- Returns:
- updated builder instance
- See Also:
-
addComputedHeaders
List of computed header values.- Parameters:
computedHeaders- computed header values- Returns:
- updated builder instance
- See Also:
-
addComputedHeader
List of computed header values.- Parameters:
computedHeader- add single computed header values- Returns:
- updated builder instance
- See Also:
-
clearPath
Clear existing value of path.- Returns:
- updated builder instance
- See Also:
-
path
-
produces
-
consumes
-
headers
-
computedHeaders
List of computed header values.- Returns:
- computed header values
-
path
-
toString
- Overrides:
toStringin classModelElement.BuilderBase<BUILDER extends HttpAnnotated.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpAnnotated>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classModelElement.BuilderBase<BUILDER extends HttpAnnotated.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpAnnotated>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classModelElement.BuilderBase<BUILDER extends HttpAnnotated.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends HttpAnnotated>
-