public final class JacksonSupport extends Object implements Service, Handler
Handler.EntityHandler<T>| Modifier and Type | Method and Description |
|---|---|
void |
accept(ServerRequest request,
ServerResponse response)
|
static JacksonSupport |
create()
Creates a new
JacksonSupport. |
static JacksonSupport |
create(BiFunction<? super ServerRequest,? super ServerResponse,? extends ObjectMapper> objectMapperProvider)
Creates a new
JacksonSupport. |
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 JacksonSupport create()
JacksonSupport.JacksonSupportpublic static JacksonSupport create(BiFunction<? super ServerRequest,? super ServerResponse,? extends ObjectMapper> objectMapperProvider)
JacksonSupport.objectMapperProvider - a BiFunction that returns
an ObjectMapper when given a ServerRequest and
a ServerResponse; must not be nullJacksonSupportNullPointerException - if objectMapperProvider
is nullCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.