public class SofaResponseHessianSerializer extends AbstractCustomHessianSerializer<SofaResponse>
genericSerializerFactory, serializerFactory| 构造器和说明 |
|---|
SofaResponseHessianSerializer(com.caucho.hessian.io.SerializerFactory serializerFactory,
com.caucho.hessian.io.SerializerFactory genericSerializerFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
SofaResponse |
decodeObject(AbstractByteBuf data,
Map<String,String> context)
反序列化,只有类型,返回对象
|
void |
decodeObjectByTemplate(AbstractByteBuf data,
Map<String,String> context,
SofaResponse template)
反序列化,已有数据,填充字段
|
AbstractByteBuf |
encodeObject(SofaResponse sofaResponse,
Map<String,String> context)
序列化
|
buildDeserializeError, buildDeserializeError, buildSerializeError, isGenericRequest, isGenericResponsepublic SofaResponseHessianSerializer(com.caucho.hessian.io.SerializerFactory serializerFactory,
com.caucho.hessian.io.SerializerFactory genericSerializerFactory)
public void decodeObjectByTemplate(AbstractByteBuf data, Map<String,String> context, SofaResponse template) throws SofaRpcException
CustomHessianSerializerdata - 原始字节数组context - 上下文template - 模板对象SofaRpcException - 序列化异常public SofaResponse decodeObject(AbstractByteBuf data, Map<String,String> context) throws SofaRpcException
CustomHessianSerializerdata - 原始字节数组context - 上下文SofaRpcException - 序列化异常public AbstractByteBuf encodeObject(SofaResponse sofaResponse, Map<String,String> context)
CustomHessianSerializersofaResponse - 对象context - 上下文Copyright © 2008–2018 The Ant Financial. All rights reserved.