mrgaom opened a new issue, #10901:
URL: https://github.com/apache/dubbo/issues/10901
如上所述:
其实DecodeHandler的received方法中针对的是Request和Response语义的解码操作,但是该类被放到了transport层,这感觉有点违背了dubbo分层的约定。代码如下:
```java
@Override
public void received(Channel channel, Object message) throws
RemotingException {
if (message instanceof Decodeable) {
decode(message);
}
if (message instanceof Request) {
decode(((Request) message).getData());
}
if (message instanceof Response) {
decode(((Response) message).getResult());
}
handler.received(channel, message);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]