|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.core.service.IoHandlerAdapter
org.red5.server.net.rtmp.RTMPMinaIoHandler
public class RTMPMinaIoHandler
Handles all RTMP protocol events fired by the MINA framework.
Field Summary | |
---|---|
protected org.springframework.context.ApplicationContext |
appCtx
Application context |
protected ProtocolCodecFactory |
codecFactory
RTMP protocol codec factory |
protected IRTMPHandler |
handler
RTMP events handler |
protected boolean |
mode
Mode |
protected IRTMPConnManager |
rtmpConnManager
|
Constructor Summary | |
---|---|
RTMPMinaIoHandler()
|
Method Summary | |
---|---|
protected RTMPMinaConnection |
createRTMPMinaConnection()
|
void |
exceptionCaught(IoSession session,
Throwable cause)
|
protected IRTMPConnManager |
getRtmpConnManager()
|
void |
messageReceived(IoSession session,
Object in)
|
void |
messageSent(IoSession session,
Object message)
|
protected void |
rawBufferRecieved(ProtocolState state,
IoBuffer in,
IoSession session)
Handle raw buffer receiving event. |
void |
sessionClosed(IoSession session)
|
void |
sessionCreated(IoSession session)
|
void |
sessionOpened(IoSession session)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext appCtx)
|
void |
setCodecFactory(ProtocolCodecFactory codecFactory)
Setter for codec factory. |
void |
setHandler(IRTMPHandler handler)
Setter for handler. |
void |
setMode(boolean mode)
Setter for mode. |
void |
setRtmpConnManager(IRTMPConnManager rtmpConnManager)
|
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter |
---|
sessionIdle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IRTMPHandler handler
protected boolean mode
protected org.springframework.context.ApplicationContext appCtx
protected ProtocolCodecFactory codecFactory
protected IRTMPConnManager rtmpConnManager
Constructor Detail |
---|
public RTMPMinaIoHandler()
Method Detail |
---|
public void sessionCreated(IoSession session) throws Exception
sessionCreated
in interface IoHandler
sessionCreated
in class IoHandlerAdapter
Exception
public void sessionOpened(IoSession session) throws Exception
sessionOpened
in interface IoHandler
sessionOpened
in class IoHandlerAdapter
Exception
public void sessionClosed(IoSession session) throws Exception
sessionClosed
in interface IoHandler
sessionClosed
in class IoHandlerAdapter
Exception
protected void rawBufferRecieved(ProtocolState state, IoBuffer in, IoSession session)
state
- Protocol statein
- Data buffersession
- I/O session, that is, connection between two endpointspublic void messageReceived(IoSession session, Object in) throws Exception
messageReceived
in interface IoHandler
messageReceived
in class IoHandlerAdapter
Exception
public void messageSent(IoSession session, Object message) throws Exception
messageSent
in interface IoHandler
messageSent
in class IoHandlerAdapter
Exception
public void exceptionCaught(IoSession session, Throwable cause) throws Exception
exceptionCaught
in interface IoHandler
exceptionCaught
in class IoHandlerAdapter
Exception
public void setHandler(IRTMPHandler handler)
handler
- RTMP events handlerpublic void setMode(boolean mode)
mode
- true
if handler should work in server mode,
false
otherwisepublic void setCodecFactory(ProtocolCodecFactory codecFactory)
codecFactory
- RTMP protocol codec factorypublic void setRtmpConnManager(IRTMPConnManager rtmpConnManager)
protected IRTMPConnManager getRtmpConnManager()
public void setApplicationContext(org.springframework.context.ApplicationContext appCtx) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
protected RTMPMinaConnection createRTMPMinaConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |