Package io.helidon.media.jsonb.server
Class JsonBindingSupport
- java.lang.Object
-
- io.helidon.webserver.JsonService
-
- io.helidon.media.jsonb.server.JsonBindingSupport
-
- All Implemented Interfaces:
Handler,Service,BiConsumer<ServerRequest,ServerResponse>
public final class JsonBindingSupport extends JsonService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.webserver.Handler
Handler.EntityHandler<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ServerRequest request, ServerResponse response)static JsonBindingSupportcreate()Creates a newJsonBindingSupport.static JsonBindingSupportcreate(BiFunction<? super ServerRequest,? super ServerResponse,? extends Jsonb> jsonbProvider)Creates a newJsonBindingSupport.static JsonBindingSupportcreate(Jsonb jsonb)Creates a newJsonBindingSupport.-
Methods inherited from class io.helidon.webserver.JsonService
acceptsJson, toJsonResponseType, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Method Detail
-
accept
public void accept(ServerRequest request, ServerResponse response)
Description copied from interface:Handler- Parameters:
request- an HTTP server request.response- an HTTP server response.
-
create
public static JsonBindingSupport create(BiFunction<? super ServerRequest,? super ServerResponse,? extends Jsonb> jsonbProvider)
Creates a newJsonBindingSupport.- Parameters:
jsonbProvider- aBiFunctionthat returns aJsonbwhen given aServerRequestand aServerResponse; must not benull- Returns:
- a new
JsonBindingSupport - Throws:
NullPointerException- ifjsonbProviderisnull
-
create
public static JsonBindingSupport create(Jsonb jsonb)
Creates a newJsonBindingSupport.- Parameters:
jsonb- the Jsonb} to use; must not benull- Returns:
- a new
JsonBindingSupport - Throws:
NullPointerException- ifjsonbisnull
-
create
public static JsonBindingSupport create()
Creates a newJsonBindingSupport.- Returns:
- a new
JsonBindingSupport
-
-