org.red5.server.api.scope
public interface IScopeHandler extends IEventHandler
Modifier and Type | Method and Description |
---|---|
boolean |
addChildScope(IBasicScope scope)
Called just before a child scope is added.
|
boolean |
connect(IConnection conn,
IScope scope,
Object[] params)
Called just before every connection to a scope.
|
void |
disconnect(IConnection conn,
IScope scope)
Called just after the a connection is disconnected.
|
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)
Called when a service is called.
|
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.
|
handleEvent
boolean start(IScope scope)
scope
- the new scope objecttrue
to allow, false
to denyvoid stop(IScope scope)
scope
- Scope that id disposedboolean connect(IConnection conn, IScope scope, Object[] params)
NetConnection.connect
method (see
below).conn
- Connection objectparams
- List of params passed from client via
NetConnection.connect
method. All parameters
but the first one passed to NetConnection.connect
method are available as params array.scope
- Scope objecttrue
to allow, false
to denyvoid disconnect(IConnection conn, IScope scope)
conn
- Connection objectscope
- Scope objectboolean addChildScope(IBasicScope scope)
scope
- Scope that will be addedtrue
to allow, false
to denyvoid removeChildScope(IBasicScope scope)
scope
- Scope that has been removedboolean join(IClient client, IScope scope)
client
- Client objectscope
- Scope that is joined by clienttrue
to allow, false
to deny
connectionvoid leave(IClient client, IScope scope)
client
- Client objectscope
- Scope objectboolean serviceCall(IConnection conn, IServiceCall call)
conn
- The connection objectcall
- The call object.true
to allow, false
to denyCopyright © 2006-2012 The Red5 Project