org.red5.server
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 IScopeHandler
scope
- Scope that will be addedtrue
to allow, false
to denypublic boolean connect(IConnection conn, IScope scope)
connect
in interface CoreHandlerMXBean
conn
- Client connecitonscope
- Scopepublic 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 callpublic 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 clienttrue
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 contextpublic boolean start(IScope scope)
start
in interface IScopeHandler
start
in interface CoreHandlerMXBean
scope
- the new scope objecttrue
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 handleCopyright © 2006-2012 The Red5 Project