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 void
accept(ServerRequest request, ServerResponse response)
static JsonBindingSupport
create()
Creates a newJsonBindingSupport
.static JsonBindingSupport
create(BiFunction<? super ServerRequest,? super ServerResponse,? extends Jsonb> jsonbProvider)
Creates a newJsonBindingSupport
.static JsonBindingSupport
create(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
- aBiFunction
that returns aJsonb
when given aServerRequest
and aServerResponse
; must not benull
- Returns:
- a new
JsonBindingSupport
- Throws:
NullPointerException
- ifjsonbProvider
isnull
-
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
- ifjsonb
isnull
-
create
public static JsonBindingSupport create()
Creates a newJsonBindingSupport
.- Returns:
- a new
JsonBindingSupport
-
-