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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.jsonProcessingConfig
(Map<String, ?> config) Configuration to use when creating reader and writer factories.jsonReaderFactory
(JsonReaderFactory factory) Explicit JSON-P Reader factory instance.jsonWriterFactory
(JsonWriterFactory factory) Explicit JSON-P Writer factory instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<JsonpSupport.Builder,
JsonpSupport> - Returns:
- instance of the built type
-
jsonProcessingConfig
Configuration to use when creating reader and writer factories.- Parameters:
config
- configuration of JSON-P library- Returns:
- updated builder instance
-
jsonWriterFactory
Explicit JSON-P Writer factory instance.- Parameters:
factory
- writer factory- Returns:
- updated builder instance
-
jsonReaderFactory
Explicit JSON-P Reader factory instance.- Parameters:
factory
- reader factory- Returns:
- updated builder instance
-