public class CoreHandler extends Object implements IScopeHandler, CoreHandlerMXBean
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
CoreHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean addChildScope(IBasicScope scope)
addChildScope in interface IScopeHandlerscope - Scope that will be addedtrue to allow, false to denypublic boolean connect(IConnection conn, IScope scope)
connect in interface CoreHandlerMXBeanconn - Client connecitonscope - Scopepublic boolean connect(IConnection conn, IScope scope, Object[] params)
connect in interface IScopeHandlerconnect in interface CoreHandlerMXBeanconn - Client connectionscope - Scopeparams - Params passed from client side with connect callpublic void disconnect(IConnection conn, IScope scope)
disconnect in interface IScopeHandlerdisconnect in interface CoreHandlerMXBeanconn - Connection objectscope - Scope objectpublic boolean join(IClient client, IScope scope)
join in interface IScopeHandlerjoin in interface CoreHandlerMXBeanclient - Client objectscope - Scope that is joined by clienttrue to allow, false to deny
connectionpublic void leave(IClient client, IScope scope)
leave in interface IScopeHandlerleave in interface CoreHandlerMXBeanclient - Client objectscope - Scope objectpublic void removeChildScope(IBasicScope scope)
removeChildScope in interface IScopeHandlerremoveChildScope in interface CoreHandlerMXBeanscope - Scope that has been removedpublic boolean serviceCall(IConnection conn, IServiceCall call)
serviceCall in interface IScopeHandlerserviceCall in interface CoreHandlerMXBeanconn - Connection to invoke method oncall - Service call contextpublic boolean start(IScope scope)
start in interface IScopeHandlerstart in interface CoreHandlerMXBeanscope - the new scope objecttrue to allow, false to denypublic void stop(IScope scope)
stop in interface IScopeHandlerstop in interface CoreHandlerMXBeanscope - Scope that id disposedpublic boolean handleEvent(IEvent event)
handleEvent in interface IEventHandlerhandleEvent in interface CoreHandlerMXBeanevent - event to handleCopyright © 2006-2012 The Red5 Project