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 voidaccept(ServerRequest request, ServerResponse response)static JacksonSupportcreate()Creates a newJacksonSupport.static JacksonSupportcreate(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- aBiFunctionthat returns anObjectMapperwhen given aServerRequestand aServerResponse; must not benull- Returns:
- a new
JacksonSupport - Throws:
NullPointerException- ifobjectMapperProviderisnull
-
-