|
||||||||||
| 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.
| 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(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 |
| 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(ProtocolCodecFactory codecFactory)
codecFactory - RTMP protocol codec factorypublic void setRtmpConnManager(IRTMPConnManager rtmpConnManager)
protected IRTMPConnManager getRtmpConnManager()
public void exceptionCaught(IoSession session,
Throwable cause)
throws Exception
exceptionCaught in interface IoHandlerexceptionCaught in class IoHandlerAdapterException
public void messageReceived(IoSession session,
Object in)
throws Exception
messageReceived in interface IoHandlermessageReceived in class IoHandlerAdapterException
protected void rawBufferRecieved(ProtocolState state,
IoBuffer in,
IoSession session)
state - Protocol statein - Data buffersession - I/O session, that is, connection between two endpoints
public void messageSent(IoSession session,
Object message)
throws Exception
messageSent in interface IoHandlermessageSent 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
public void sessionCreated(IoSession session)
throws Exception
sessionCreated in interface IoHandlersessionCreated in class IoHandlerAdapterException
public void setApplicationContext(ApplicationContext appCtx)
throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionprotected RTMPMinaConnection createRTMPMinaConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||