public final class Protocols
extends java.lang.Object
Protocol
s.Modifier and Type | Method and Description |
---|---|
static Protocol |
newProtocol()
Returns a new instance of a simple
Protocol . |
public static Protocol newProtocol()
Protocol
.
This simple Protocol
does no modification to the Message
when passed to any of its methods decode(Message)
and encode(Message)
. So it simply returns the Message
itself.
Protocol