|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.net.protocol.BaseProtocolEncoder
org.red5.server.net.remoting.codec.RemotingProtocolEncoder
public class RemotingProtocolEncoder
Remoting protocol encoder.
Field Summary | |
---|---|
protected static Logger |
ioLog
I/O logger |
protected static Logger |
log
Logger |
Constructor Summary | |
---|---|
RemotingProtocolEncoder()
|
Method Summary | |
---|---|
void |
dispose(org.apache.mina.core.session.IoSession ioSession)
Dispose I/O session, not implemented yet. |
org.apache.mina.core.buffer.IoBuffer |
encode(ProtocolState state,
Object message)
Encodes object with given protocol state to byte buffer |
void |
setSerializer(Serializer serializer)
Setter for serializer. |
Methods inherited from class org.red5.server.net.protocol.BaseProtocolEncoder |
---|
generateErrorResult |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Logger log
protected static Logger ioLog
Constructor Detail |
---|
public RemotingProtocolEncoder()
Method Detail |
---|
public org.apache.mina.core.buffer.IoBuffer encode(ProtocolState state, Object message) throws Exception
encode
in interface SimpleProtocolEncoder
state
- Protocol statemessage
- Object to encode
Exception
- Any decoding exceptionpublic void dispose(org.apache.mina.core.session.IoSession ioSession) throws Exception
ioSession
- I/O session
Exception
- Exceptionpublic void setSerializer(Serializer serializer)
serializer
- New serializer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |