|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.net.remoting.codec.RemotingProtocolDecoder
public class RemotingProtocolDecoder
Field Summary | |
---|---|
protected static Logger |
ioLog
I/O logger |
protected static Logger |
log
Logger |
Constructor Summary | |
---|---|
RemotingProtocolDecoder()
|
Method Summary | |
---|---|
Object |
decode(ProtocolState state,
org.apache.mina.core.buffer.IoBuffer in)
|
List<Object> |
decodeBuffer(ProtocolState state,
org.apache.mina.core.buffer.IoBuffer buffer)
Decode all available objects in buffer. |
protected List<RemotingCall> |
decodeCalls(org.apache.mina.core.buffer.IoBuffer in)
Decode calls. |
void |
dispose(org.apache.mina.core.session.IoSession session)
Disposes session. |
protected Map<String,Object> |
readHeaders(org.apache.mina.core.buffer.IoBuffer in)
Read remoting headers. |
void |
setDeserializer(Deserializer deserializer)
Setter for deserializer. |
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 RemotingProtocolDecoder()
Method Detail |
---|
public void setDeserializer(Deserializer deserializer)
deserializer
- Deserializerpublic List<Object> decodeBuffer(ProtocolState state, org.apache.mina.core.buffer.IoBuffer buffer)
decodeBuffer
in interface SimpleProtocolDecoder
state
- Stores state for the protocolbuffer
- IoBuffer of data to be decoded
public Object decode(ProtocolState state, org.apache.mina.core.buffer.IoBuffer in) throws Exception
decode
in interface SimpleProtocolDecoder
state
- Stores state for the protocol, ProtocolState is just a marker
interfacein
- IoBuffer of data to be decoded
Exception
- on errorpublic void dispose(org.apache.mina.core.session.IoSession session) throws Exception
session
- Session to dispose
Exception
- Any exception can be raised on disposalprotected Map<String,Object> readHeaders(org.apache.mina.core.buffer.IoBuffer in)
in
- Input data as byte bufferprotected List<RemotingCall> decodeCalls(org.apache.mina.core.buffer.IoBuffer in)
in
- Input data as byte buffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |