public class RTMPMinaIoHandler
extends org.apache.mina.core.service.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(org.apache.mina.core.session.IoSession session,
Throwable cause) |
protected IRTMPConnManager |
getRtmpConnManager() |
void |
messageReceived(org.apache.mina.core.session.IoSession session,
Object message) |
void |
messageSent(org.apache.mina.core.session.IoSession session,
Object message) |
protected void |
rawBufferRecieved(org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.core.session.IoSession session)
Handle raw buffer receiving event.
|
void |
sessionClosed(org.apache.mina.core.session.IoSession session) |
void |
sessionCreated(org.apache.mina.core.session.IoSession session) |
void |
sessionOpened(org.apache.mina.core.session.IoSession session) |
void |
setApplicationContext(org.springframework.context.ApplicationContext appCtx) |
void |
setHandler(IRTMPHandler handler)
Setter for handler.
|
void |
setRtmpConnManager(IRTMPConnManager rtmpConnManager) |
protected IRTMPHandler handler
protected org.springframework.context.ApplicationContext appCtx
protected IRTMPConnManager rtmpConnManager
public void sessionCreated(org.apache.mina.core.session.IoSession session)
throws Exception
sessionCreated in interface org.apache.mina.core.service.IoHandlersessionCreated in class org.apache.mina.core.service.IoHandlerAdapterExceptionpublic void sessionOpened(org.apache.mina.core.session.IoSession session)
throws Exception
sessionOpened in interface org.apache.mina.core.service.IoHandlersessionOpened in class org.apache.mina.core.service.IoHandlerAdapterExceptionpublic void sessionClosed(org.apache.mina.core.session.IoSession session)
throws Exception
sessionClosed in interface org.apache.mina.core.service.IoHandlersessionClosed in class org.apache.mina.core.service.IoHandlerAdapterExceptionprotected void rawBufferRecieved(org.apache.mina.core.buffer.IoBuffer in,
org.apache.mina.core.session.IoSession session)
in - Data buffersession - I/O session, that is, connection between two endpointspublic void messageReceived(org.apache.mina.core.session.IoSession session,
Object message)
throws Exception
messageReceived in interface org.apache.mina.core.service.IoHandlermessageReceived in class org.apache.mina.core.service.IoHandlerAdapterExceptionpublic void messageSent(org.apache.mina.core.session.IoSession session,
Object message)
throws Exception
messageSent in interface org.apache.mina.core.service.IoHandlermessageSent in class org.apache.mina.core.service.IoHandlerAdapterExceptionpublic void exceptionCaught(org.apache.mina.core.session.IoSession session,
Throwable cause)
throws Exception
exceptionCaught in interface org.apache.mina.core.service.IoHandlerexceptionCaught in class org.apache.mina.core.service.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