public class DefaultCustomSerializer extends Object implements CustomSerializer
| Constructor and Description |
|---|
DefaultCustomSerializer() |
| Modifier and Type | Method and Description |
|---|---|
<T extends RequestCommand> |
deserializeContent(T request)
Deserialize the content of RequestCommand.
|
<T extends ResponseCommand> |
deserializeContent(T response,
InvokeContext invokeContext)
Deserialize the content of ResponseCommand.
|
<T extends RequestCommand> |
deserializeHeader(T request)
Deserialize the header of RequestCommand.
|
<T extends ResponseCommand> |
deserializeHeader(T response,
InvokeContext invokeContext)
Deserialize the header of ResponseCommand.
|
<T extends ResponseCommand> |
serializeContent(T response)
Serialize the content of ResponseCommand.
|
<T extends RequestCommand> |
serializeContent(T request,
InvokeContext invokeContext)
Serialize the content of RequestCommand.
|
<T extends ResponseCommand> |
serializeHeader(T response)
Serialize the header of ResponseCommand.
|
<T extends RequestCommand> |
serializeHeader(T request,
InvokeContext invokeContext)
Serialize the header of RequestCommand.
|
public <T extends RequestCommand> boolean serializeHeader(T request, InvokeContext invokeContext) throws SerializationException
CustomSerializerserializeHeader in interface CustomSerializerSerializationExceptionCustomSerializer.serializeHeader(com.alipay.remoting.rpc.RequestCommand, InvokeContext)public <T extends ResponseCommand> boolean serializeHeader(T response) throws SerializationException
CustomSerializerserializeHeader in interface CustomSerializerSerializationExceptionCustomSerializer.serializeHeader(com.alipay.remoting.rpc.ResponseCommand)public <T extends RequestCommand> boolean deserializeHeader(T request) throws DeserializationException
CustomSerializerdeserializeHeader in interface CustomSerializerDeserializationExceptionCustomSerializer.deserializeHeader(com.alipay.remoting.rpc.RequestCommand)public <T extends ResponseCommand> boolean deserializeHeader(T response, InvokeContext invokeContext) throws DeserializationException
CustomSerializerdeserializeHeader in interface CustomSerializerDeserializationExceptionCustomSerializer.deserializeHeader(com.alipay.remoting.rpc.ResponseCommand, InvokeContext)public <T extends RequestCommand> boolean serializeContent(T request, InvokeContext invokeContext) throws SerializationException
CustomSerializerserializeContent in interface CustomSerializerSerializationExceptionCustomSerializer.serializeContent(com.alipay.remoting.rpc.RequestCommand, InvokeContext)public <T extends ResponseCommand> boolean serializeContent(T response) throws SerializationException
CustomSerializerserializeContent in interface CustomSerializerSerializationExceptionCustomSerializer.serializeContent(com.alipay.remoting.rpc.ResponseCommand)public <T extends RequestCommand> boolean deserializeContent(T request) throws DeserializationException
CustomSerializerdeserializeContent in interface CustomSerializerDeserializationExceptionCustomSerializer.deserializeContent(com.alipay.remoting.rpc.RequestCommand)public <T extends ResponseCommand> boolean deserializeContent(T response, InvokeContext invokeContext) throws DeserializationException
CustomSerializerdeserializeContent in interface CustomSerializerDeserializationExceptionCustomSerializer.deserializeContent(com.alipay.remoting.rpc.ResponseCommand, InvokeContext)Copyright © 2024. All rights reserved.