Class JsonpSupport.Builder

java.lang.Object
io.helidon.media.jsonp.JsonpSupport.Builder
All Implemented Interfaces:
Builder<JsonpSupport.Builder,JsonpSupport>, Supplier<JsonpSupport>
Enclosing class:
JsonpSupport

public static class JsonpSupport.Builder extends Object implements Builder<JsonpSupport.Builder,JsonpSupport>
Fluent-API builder for JsonpSupport.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public JsonpSupport build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<JsonpSupport.Builder,JsonpSupport>
      Returns:
      instance of the built type
    • jsonProcessingConfig

      public JsonpSupport.Builder jsonProcessingConfig(Map<String,?> config)
      Configuration to use when creating reader and writer factories.
      Parameters:
      config - configuration of JSON-P library
      Returns:
      updated builder instance
    • jsonWriterFactory

      public JsonpSupport.Builder jsonWriterFactory(JsonWriterFactory factory)
      Explicit JSON-P Writer factory instance.
      Parameters:
      factory - writer factory
      Returns:
      updated builder instance
    • jsonReaderFactory

      public JsonpSupport.Builder jsonReaderFactory(JsonReaderFactory factory)
      Explicit JSON-P Reader factory instance.
      Parameters:
      factory - reader factory
      Returns:
      updated builder instance