|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.server.CoreHandler
public class CoreHandler
Base IScopeHandler implementation
Field Summary | |
---|---|
protected static Logger |
log
|
Constructor Summary | |
---|---|
CoreHandler()
|
Method Summary | |
---|---|
boolean |
addChildScope(IBasicScope scope)
Called just before a child scope is added. |
boolean |
connect(IConnection conn,
IScope scope)
Connects client to the scope |
boolean |
connect(IConnection conn,
IScope scope,
Object[] params)
Connects client to the scope |
void |
disconnect(IConnection conn,
IScope scope)
Called just after the a connection is disconnected. |
boolean |
handleEvent(IEvent event)
Handle an event |
boolean |
join(IClient client,
IScope scope)
Called just before a client enters the scope. |
void |
leave(IClient client,
IScope scope)
Called just after the client leaves the scope. |
void |
removeChildScope(IBasicScope scope)
Called just after a child scope has been removed. |
boolean |
serviceCall(IConnection conn,
IServiceCall call)
Remote method invocation |
boolean |
start(IScope scope)
Called when a scope is created for the first time. |
void |
stop(IScope scope)
Called just before a scope is disposed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Logger log
Constructor Detail |
---|
public CoreHandler()
Method Detail |
---|
public boolean addChildScope(IBasicScope scope)
addChildScope
in interface IScopeHandler
scope
- Scope that will be added
true
to allow, false
to denypublic boolean connect(IConnection conn, IScope scope)
connect
in interface CoreHandlerMXBean
conn
- Client connecitonscope
- Scope
public boolean connect(IConnection conn, IScope scope, Object[] params)
connect
in interface IScopeHandler
connect
in interface CoreHandlerMXBean
conn
- Client connectionscope
- Scopeparams
- Params passed from client side with connect call
public void disconnect(IConnection conn, IScope scope)
disconnect
in interface IScopeHandler
disconnect
in interface CoreHandlerMXBean
conn
- Connection objectscope
- Scope objectpublic boolean join(IClient client, IScope scope)
join
in interface IScopeHandler
join
in interface CoreHandlerMXBean
client
- Client objectscope
- Scope that is joined by client
true
to allow, false
to deny
connectionpublic void leave(IClient client, IScope scope)
leave
in interface IScopeHandler
leave
in interface CoreHandlerMXBean
client
- Client objectscope
- Scope objectpublic void removeChildScope(IBasicScope scope)
removeChildScope
in interface IScopeHandler
removeChildScope
in interface CoreHandlerMXBean
scope
- Scope that has been removedpublic boolean serviceCall(IConnection conn, IServiceCall call)
serviceCall
in interface IScopeHandler
serviceCall
in interface CoreHandlerMXBean
conn
- Connection to invoke method oncall
- Service call context
public boolean start(IScope scope)
start
in interface IScopeHandler
start
in interface CoreHandlerMXBean
scope
- the new scope object
true
to allow, false
to denypublic void stop(IScope scope)
stop
in interface IScopeHandler
stop
in interface CoreHandlerMXBean
scope
- Scope that id disposedpublic boolean handleEvent(IEvent event)
handleEvent
in interface IEventHandler
handleEvent
in interface CoreHandlerMXBean
event
- event to handle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |