Class 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
    • Constructor Detail

      • JsonObjectSerializer

        public JsonObjectSerializer()
    • Method Detail

      • handles

        public boolean handles​(Object payload)
        Description copied from interface: Serializer
        if the serializer can handle given payload
        Specified by:
        handles in interface Serializer<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: Serializer
        serialize the payload
        Specified by:
        serialize in interface Serializer<io.vertx.core.json.JsonObject>
        Parameters:
        payload - object to serialize
        Returns:
        a buffer with serialized payload