Hi all,
I have added some traces to my app, and it appears that adding the
session in a String generates the default info (class name
(SocketSessionImpl) @ hash code)
What about defining an IoSessionStringifier that could be set to IoSession?
BaseIoSession would then implement:
public String toString() {
return stringifier.toString(this);
}
BaseIoSession would have a default IoSessionStringifier returning the
same that java.lang.Object#toString()
SocketSessionImpl could have a default IoSessionStringifier that
returns the socket address.
I could then define mine that uses session attributes to print useful info.
If it suits everyone, I can implement it and send patch.
J-F