Class JsonpSupportConfig.BuilderBase<BUILDER extends JsonpSupportConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JsonpSupportConfig>

java.lang.Object
io.helidon.http.media.jsonp.JsonpSupportConfig.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
JsonpSupportConfig.Builder
Enclosing interface:
JsonpSupportConfig

public abstract static class JsonpSupportConfig.BuilderBase<BUILDER extends JsonpSupportConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends JsonpSupportConfig> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for JsonpSupport.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(JsonpSupportConfig prototype)
      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

      public BUILDER from(JsonpSupportConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • name

      public BUILDER name(String name)
      Name of the support. Default value is jsonp.
      Parameters:
      name - name of the support
      Returns:
      updated builder instance
      See Also:
    • readerFactory

      public BUILDER readerFactory(JsonReaderFactory readerFactory)
      Jsonp reader factory.
      Parameters:
      readerFactory - reader factory
      Returns:
      updated builder instance
      See Also:
    • writerFactory

      public BUILDER writerFactory(JsonWriterFactory writerFactory)
      Jsonp writer factory.
      Parameters:
      writerFactory - writer factory
      Returns:
      updated builder instance
      See Also:
    • name

      public String name()
      Name of the support. Default value is jsonp.
      Returns:
      the name
    • readerFactory

      public Optional<JsonReaderFactory> readerFactory()
      Jsonp reader factory.
      Returns:
      the reader factory
    • writerFactory

      public Optional<JsonWriterFactory> writerFactory()
      Jsonp writer factory.
      Returns:
      the writer factory
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.