|
||||||||||
| 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 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(org.springframework.context.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 org.springframework.context.ApplicationContext appCtx
protected IRTMPConnManager rtmpConnManager
| Constructor Detail |
|---|
public RTMPMinaIoHandler()
| Method Detail |
|---|
public void sessionCreated(IoSession session)
throws Exception
sessionCreated in interface IoHandlersessionCreated in class IoHandlerAdapterException
public void sessionOpened(IoSession session)
throws Exception
sessionOpened in interface IoHandlersessionOpened in class IoHandlerAdapterException
public void sessionClosed(IoSession session)
throws Exception
sessionClosed in interface IoHandlersessionClosed in class IoHandlerAdapterException
protected void rawBufferRecieved(IoBuffer in,
IoSession session)
in - Data buffersession - I/O session, that is, connection between two endpoints
public void messageReceived(IoSession session,
Object message)
throws Exception
messageReceived in interface IoHandlermessageReceived in class IoHandlerAdapterException
public void messageSent(IoSession session,
Object message)
throws Exception
messageSent in interface IoHandlermessageSent in class IoHandlerAdapterException
public void exceptionCaught(IoSession session,
Throwable cause)
throws Exception
exceptionCaught in interface IoHandlerexceptionCaught in class IoHandlerAdapterExceptionpublic void setHandler(IRTMPHandler handler)
handler - RTMP events handlerpublic 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.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected RTMPMinaConnection createRTMPMinaConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||