Class StringSerializer
- java.lang.Object
-
- io.quarkus.reactivemessaging.http.runtime.serializers.StringSerializer
-
- All Implemented Interfaces:
Serializer<String>
public class StringSerializer extends Object implements Serializer<String>
Serializer for Strings
-
-
Field Summary
-
Fields inherited from interface io.quarkus.reactivemessaging.http.runtime.serializers.Serializer
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description StringSerializer()
-
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(String 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<String>- Parameters:
payload- the payload- Returns:
- true iff the seralizer can handle the payload
-
serialize
public io.vertx.core.buffer.Buffer serialize(String payload)
Description copied from interface:Serializerserialize the payload- Specified by:
serializein interfaceSerializer<String>- Parameters:
payload- object to serialize- Returns:
- a buffer with serialized payload
-
-