public final class JsonBindingSupport extends JsonService
Handler.EntityHandler<T>| Modifier and Type | Method and Description |
|---|---|
void |
accept(ServerRequest request,
ServerResponse response)
|
static JsonBindingSupport |
create()
Creates a new
JsonBindingSupport. |
static JsonBindingSupport |
create(BiFunction<? super ServerRequest,? super ServerResponse,? extends javax.json.bind.Jsonb> jsonbProvider)
Creates a new
JsonBindingSupport. |
static JsonBindingSupport |
create(javax.json.bind.Jsonb jsonb)
Creates a new
JsonBindingSupport. |
acceptsJson, toJsonResponseType, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic void accept(ServerRequest request, ServerResponse response)
Handlerrequest - an HTTP server request.response - an HTTP server response.public static JsonBindingSupport create(BiFunction<? super ServerRequest,? super ServerResponse,? extends javax.json.bind.Jsonb> jsonbProvider)
JsonBindingSupport.jsonbProvider - a BiFunction that returns a Jsonb when given a ServerRequest and a ServerResponse; must not be nullJsonBindingSupportNullPointerException - if jsonbProvider is
nullpublic static JsonBindingSupport create(javax.json.bind.Jsonb jsonb)
JsonBindingSupport.jsonb - the Jsonb} to use; must not be nullJsonBindingSupportNullPointerException - if jsonb is nullpublic static JsonBindingSupport create()
JsonBindingSupport.JsonBindingSupportCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.