public final class JsonBindingSupport extends Object implements Service, Handler
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 Jsonb> jsonbProvider)
Creates a new
JsonBindingSupport. |
static JsonBindingSupport |
create(Jsonb jsonb)
Creates a new
JsonBindingSupport. |
void |
update(Routing.Rules routingRules)
Updates
Routing.Rules with handlers representing this service. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic void update(Routing.Rules routingRules)
ServiceRouting.Rules with handlers representing this service.public void accept(ServerRequest request, ServerResponse response)
Handleraccept in interface Handleraccept in interface BiConsumer<ServerRequest,ServerResponse>request - an HTTP server request.response - an HTTP server response.public static JsonBindingSupport create(BiFunction<? super ServerRequest,? super ServerResponse,? extends 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(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.