Class JsonObjectSerializer
- java.lang.Object
-
- io.quarkus.reactivemessaging.http.runtime.serializers.JsonObjectSerializer
-
- All Implemented Interfaces:
Serializer<io.vertx.core.json.JsonObject>
public class JsonObjectSerializer extends Object implements Serializer<io.vertx.core.json.JsonObject>
Serializer for JsonObject
-
-
Field Summary
-
Fields inherited from interface io.quarkus.reactivemessaging.http.runtime.serializers.Serializer
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description JsonObjectSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhandles(Object payload)if the serializer can handle given payloadio.vertx.core.buffer.Bufferserialize(io.vertx.core.json.JsonObject payload)serialize the payload-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.reactivemessaging.http.runtime.serializers.Serializer
getPriority
-
-
-
-
Method Detail
-
handles
public boolean handles(Object payload)
Description copied from interface:Serializerif the serializer can handle given payload- Specified by:
handlesin interfaceSerializer<io.vertx.core.json.JsonObject>- Parameters:
payload- the payload- Returns:
- true iff the seralizer can handle the payload
-
serialize
public io.vertx.core.buffer.Buffer serialize(io.vertx.core.json.JsonObject payload)
Description copied from interface:Serializerserialize the payload- Specified by:
serializein interfaceSerializer<io.vertx.core.json.JsonObject>- Parameters:
payload- object to serialize- Returns:
- a buffer with serialized payload
-
-