|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.common.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 org.apache.mina.filter.codec.ProtocolCodecFactory |
codecFactory
RTMP protocol codec factory |
protected IRTMPHandler |
handler
RTMP events handler |
protected static org.slf4j.Logger |
log
Logger |
protected boolean |
mode
Mode |
protected IRTMPConnManager |
rtmpConnManager
|
| Constructor Summary | |
|---|---|
RTMPMinaIoHandler()
|
|
| Methods inherited from class org.apache.mina.common.IoHandlerAdapter |
|---|
sessionIdle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.slf4j.Logger log
protected IRTMPHandler handler
protected boolean mode
protected org.springframework.context.ApplicationContext appCtx
protected org.apache.mina.filter.codec.ProtocolCodecFactory codecFactory
protected IRTMPConnManager rtmpConnManager
| Constructor Detail |
|---|
public RTMPMinaIoHandler()
| Method Detail |
|---|
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(org.apache.mina.filter.codec.ProtocolCodecFactory codecFactory)
codecFactory - RTMP protocol codec factorypublic void setRtmpConnManager(IRTMPConnManager rtmpConnManager)
public void exceptionCaught(org.apache.mina.common.IoSession session,
Throwable cause)
throws Exception
exceptionCaught in interface org.apache.mina.common.IoHandlerexceptionCaught in class org.apache.mina.common.IoHandlerAdapterException
public void messageReceived(org.apache.mina.common.IoSession session,
Object in)
throws Exception
messageReceived in interface org.apache.mina.common.IoHandlermessageReceived in class org.apache.mina.common.IoHandlerAdapterException
protected void rawBufferRecieved(ProtocolState state,
org.apache.mina.common.ByteBuffer in,
org.apache.mina.common.IoSession session)
state - Protocol statein - Data buffersession - I/O session, that is, connection between two endpoints
public void messageSent(org.apache.mina.common.IoSession session,
Object message)
throws Exception
messageSent in interface org.apache.mina.common.IoHandlermessageSent in class org.apache.mina.common.IoHandlerAdapterException
public void sessionOpened(org.apache.mina.common.IoSession session)
throws Exception
sessionOpened in interface org.apache.mina.common.IoHandlersessionOpened in class org.apache.mina.common.IoHandlerAdapterException
public void sessionClosed(org.apache.mina.common.IoSession session)
throws Exception
sessionClosed in interface org.apache.mina.common.IoHandlersessionClosed in class org.apache.mina.common.IoHandlerAdapterException
public void sessionCreated(org.apache.mina.common.IoSession session)
throws Exception
sessionCreated in interface org.apache.mina.common.IoHandlersessionCreated in class org.apache.mina.common.IoHandlerAdapterException
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 | |||||||||