public interface CustomSerializer
| 限定符和类型 | 方法和说明 |
|---|---|
<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.
|
<T extends RequestCommand> boolean serializeHeader(T request, InvokeContext invokeContext) throws SerializationException
request - invokeContext - CodecExceptionSerializationException<T extends ResponseCommand> boolean serializeHeader(T response) throws SerializationException
response - CodecExceptionSerializationException<T extends RequestCommand> boolean deserializeHeader(T request) throws DeserializationException
request - CodecExceptionDeserializationException<T extends ResponseCommand> boolean deserializeHeader(T response, InvokeContext invokeContext) throws DeserializationException
response - invokeContext - CodecExceptionDeserializationException<T extends RequestCommand> boolean serializeContent(T request, InvokeContext invokeContext) throws SerializationException
request - invokeContext - CodecExceptionSerializationException<T extends ResponseCommand> boolean serializeContent(T response) throws SerializationException
response - CodecExceptionSerializationException<T extends RequestCommand> boolean deserializeContent(T request) throws DeserializationException
request - CodecExceptionDeserializationException<T extends ResponseCommand> boolean deserializeContent(T response, InvokeContext invokeContext) throws DeserializationException
response - invokeContext - CodecExceptionDeserializationExceptionCopyright © 2020. All rights reserved.