Package io.helidon.media.jackson.server
Class JacksonSupport
- java.lang.Object
-
- io.helidon.webserver.JsonService
-
- io.helidon.media.jackson.server.JacksonSupport
-
- All Implemented Interfaces:
Handler
,Service
,BiConsumer<ServerRequest,ServerResponse>
public final class JacksonSupport 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 JacksonSupport
create()
Creates a newJacksonSupport
.static JacksonSupport
create(BiFunction<? super ServerRequest,? super ServerResponse,? extends ObjectMapper> objectMapperProvider)
Creates a newJacksonSupport
.-
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 JacksonSupport create()
Creates a newJacksonSupport
.- Returns:
- a new
JacksonSupport
-
create
public static JacksonSupport create(BiFunction<? super ServerRequest,? super ServerResponse,? extends ObjectMapper> objectMapperProvider)
Creates a newJacksonSupport
.- Parameters:
objectMapperProvider
- aBiFunction
that returns anObjectMapper
when given aServerRequest
and aServerResponse
; must not benull
- Returns:
- a new
JacksonSupport
- Throws:
NullPointerException
- ifobjectMapperProvider
isnull
-
-