- java.lang.Object
-
- io.helidon.media.jsonb.server.JsonBindingSupport
-
- All Implemented Interfaces:
Handler,Service,BiConsumer<ServerRequest,ServerResponse>
public final class JsonBindingSupport extends Object implements Service, Handler
-
-
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 JsonBindingSupportcreate()Creates a newJsonBindingSupport.static JsonBindingSupportcreate(javax.json.bind.Jsonb jsonb)Creates a newJsonBindingSupport.voidupdate(Routing.Rules rules)UpdatesRouting.Ruleswithhandlersrepresenting this service.-
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
-
update
public void update(Routing.Rules rules)
Description copied from interface:ServiceUpdatesRouting.Ruleswithhandlersrepresenting this service.
-
accept
public void accept(ServerRequest request, ServerResponse response)
Description copied from interface:Handler- Specified by:
acceptin interfaceBiConsumer<ServerRequest,ServerResponse>- Specified by:
acceptin interfaceHandler- Parameters:
request- an HTTP server request.response- an HTTP server response.
-
create
public static JsonBindingSupport create(javax.json.bind.Jsonb jsonb)
Creates a newJsonBindingSupport.- Parameters:
jsonb- the JSON-B to use; must not benull- Returns:
- a new
JsonBindingSupport - Throws:
NullPointerException- ifjsonbisnull
-
create
public static JsonBindingSupport create()
Creates a newJsonBindingSupport.- Returns:
- a new
JsonBindingSupport
-
-