|
||||||||||
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 ApplicationContext |
appCtx
Application context |
protected IRTMPHandler |
handler
RTMP events handler |
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 message)
|
void |
messageSent(IoSession session,
Object message)
|
protected void |
rawBufferRecieved(IoBuffer in,
IoSession session)
Handle raw buffer receiving event. |
void |
sessionClosed(IoSession session)
|
void |
sessionCreated(IoSession session)
|
void |
sessionOpened(IoSession session)
|
void |
setApplicationContext(ApplicationContext appCtx)
|
void |
setHandler(IRTMPHandler handler)
Setter for handler. |
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 ApplicationContext appCtx
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(IoBuffer in, IoSession session)
in
- Data buffersession
- I/O session, that is, connection between two endpointspublic void messageReceived(IoSession session, Object message) 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 setRtmpConnManager(IRTMPConnManager rtmpConnManager)
protected IRTMPConnManager getRtmpConnManager()
public void setApplicationContext(ApplicationContext appCtx) throws BeansException
setApplicationContext
in interface ApplicationContextAware
BeansException
protected RTMPMinaConnection createRTMPMinaConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |