public class RTMPMinaIoHandler extends IoHandlerAdapter implements org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
appCtx
Application context
|
protected IRTMPHandler |
handler
RTMP events handler
|
protected IRTMPConnManager |
rtmpConnManager |
| Constructor and Description |
|---|
RTMPMinaIoHandler() |
| Modifier and Type | Method and Description |
|---|---|
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) |
inputClosed, sessionIdleprotected IRTMPHandler handler
protected org.springframework.context.ApplicationContext appCtx
protected IRTMPConnManager rtmpConnManager
public void sessionCreated(IoSession session) throws Exception
sessionCreated in interface IoHandlersessionCreated in class IoHandlerAdapterExceptionpublic void sessionOpened(IoSession session) throws Exception
sessionOpened in interface IoHandlersessionOpened in class IoHandlerAdapterExceptionpublic void sessionClosed(IoSession session) throws Exception
sessionClosed in interface IoHandlersessionClosed in class IoHandlerAdapterExceptionprotected 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 IoHandlermessageReceived in class IoHandlerAdapterExceptionpublic void messageSent(IoSession session, Object message) throws Exception
messageSent in interface IoHandlermessageSent in class IoHandlerAdapterExceptionpublic 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()
Copyright © 2006-2012 The Red5 Project