Class JsonCodec
java.lang.Object
org.apache.dubbo.remoting.http12.message.codec.JsonCodec
- All Implemented Interfaces:
CodecMediaType,HttpMessageCodec,HttpMessageDecoder,HttpMessageEncoder
- Direct Known Subclasses:
JsonPbCodec
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]decode(InputStream is, Class<?>[] targetTypes, Charset charset) decode(InputStream is, Class<?> targetType, Charset charset) decode(InputStream is, Type targetType, Charset charset) voidencode(OutputStream os, Object[] data, Charset charset) voidencode(OutputStream os, Object data, Charset charset) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.remoting.http12.message.CodecMediaType
supportsMethods inherited from interface org.apache.dubbo.remoting.http12.message.HttpMessageDecoder
decode, decode, decodeMethods inherited from interface org.apache.dubbo.remoting.http12.message.HttpMessageEncoder
contentType, encode, encode
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
JsonCodec
-
-
Method Details
-
encode
- Specified by:
encodein interfaceHttpMessageEncoder- Throws:
EncodeException
-
encode
- Specified by:
encodein interfaceHttpMessageEncoder- Throws:
EncodeException
-
decode
- Specified by:
decodein interfaceHttpMessageDecoder- Throws:
DecodeException
-
decode
- Specified by:
decodein interfaceHttpMessageDecoder- Throws:
DecodeException
-
decode
public Object[] decode(InputStream is, Class<?>[] targetTypes, Charset charset) throws DecodeException - Specified by:
decodein interfaceHttpMessageDecoder- Throws:
DecodeException
-
mediaType
- Specified by:
mediaTypein interfaceCodecMediaType
-