public class RemotingProtocolEncoder extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
Logger
|
Constructor and Description |
---|
RemotingProtocolEncoder() |
Modifier and Type | Method and Description |
---|---|
IoBuffer |
encode(ProtocolState state,
Object message)
Encodes the given buffer.
|
protected StatusObject |
generateErrorResult(String code,
Throwable error)
Generate error object to return for given exception.
|
void |
setSerializer(Serializer serializer)
Setter for serializer.
|
public IoBuffer encode(ProtocolState state, Object message) throws Exception
state
- message
- Exception
protected StatusObject generateErrorResult(String code, Throwable error)
code
- callerror
- errorpublic void setSerializer(Serializer serializer)
serializer
- New serializerCopyright © 2006-2012 The Red5 Project