- java.lang.Object
-
- io.helidon.media.jsonp.JsonpSupport.Builder
-
- All Implemented Interfaces:
Builder<JsonpSupport>
,Supplier<JsonpSupport>
- Enclosing class:
- JsonpSupport
public static class JsonpSupport.Builder extends Object implements Builder<JsonpSupport>
Fluent-API builder forJsonpSupport
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonpSupport
build()
Build the instance from this builder.JsonpSupport.Builder
jsonProcessingConfig(Map<String,?> config)
Configuration to use when creating reader and writer factories.JsonpSupport.Builder
jsonReaderFactory(JsonReaderFactory factory)
Explicit JSON-P Reader factory instance.JsonpSupport.Builder
jsonWriterFactory(JsonWriterFactory factory)
Explicit JSON-P Writer factory instance.
-
-
-
Method Detail
-
build
public JsonpSupport build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<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
-
-