public interface MessageTextSerializer extends MessageSerializer
logger
Modifier and Type | Method and Description |
---|---|
RequestMessage |
deserializeRequest(String msg)
Deserialize a Netty
ByteBuf into a RequestMessage . |
ResponseMessage |
deserializeResponse(String msg)
Deserialize a Netty
ByteBuf into a ResponseMessage . |
String |
serializeRequestAsString(RequestMessage requestMessage) |
String |
serializeResponseAsString(ResponseMessage responseMessage) |
configure, mimeTypesSupported, serializeRequestAsBinary, serializeResponseAsBinary
String serializeResponseAsString(ResponseMessage responseMessage) throws SerializationException
SerializationException
String serializeRequestAsString(RequestMessage requestMessage) throws SerializationException
SerializationException
RequestMessage deserializeRequest(String msg) throws SerializationException
MessageSerializer
ByteBuf
into a RequestMessage
.deserializeRequest
in interface MessageSerializer
SerializationException
ResponseMessage deserializeResponse(String msg) throws SerializationException
MessageSerializer
ByteBuf
into a ResponseMessage
.deserializeResponse
in interface MessageSerializer
SerializationException
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.