Interface MessageEncoder<T,U>
-
public interface MessageEncoder<T,U>
-
-
Field Summary
Fields Modifier and Type Field Description static MessageEncoder<byte[],AxisMessage>
BINARY_WRAPPER
static MessageEncoder<String,byte[]>
STRING_TO_BYTE
static MessageEncoder<String,AxisMessage>
TEXT_WRAPPER
static MessageEncoder<XMLMessage,AxisMessage>
XML_TO_AXIS
static MessageEncoder<XMLMessage,byte[]>
XML_TO_BYTE
static MessageEncoder<XMLMessage,String>
XML_TO_STRING
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description U
encode(ClientOptions options, T message)
ContentType
getContentType(ClientOptions options, ContentType contentType)
-
-
-
Field Detail
-
XML_TO_AXIS
static final MessageEncoder<XMLMessage,AxisMessage> XML_TO_AXIS
-
XML_TO_BYTE
static final MessageEncoder<XMLMessage,byte[]> XML_TO_BYTE
-
XML_TO_STRING
static final MessageEncoder<XMLMessage,String> XML_TO_STRING
-
BINARY_WRAPPER
static final MessageEncoder<byte[],AxisMessage> BINARY_WRAPPER
-
TEXT_WRAPPER
static final MessageEncoder<String,AxisMessage> TEXT_WRAPPER
-
STRING_TO_BYTE
static final MessageEncoder<String,byte[]> STRING_TO_BYTE
-
-
Method Detail
-
getContentType
ContentType getContentType(ClientOptions options, ContentType contentType) throws Exception
- Throws:
Exception
-
encode
U encode(ClientOptions options, T message) throws Exception
- Throws:
Exception
-
-