|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IScopeHandler
The scope handler controls actions performed against a scope object, and also is notified of all events. Gives fine grained control over what actions can be performed with the can* methods. Allows for detailed reporting on what is happening within the scope with the on* methods. This is the core interface users implement to create applications. The thread local connection is always available via the Red5 object within these methods
Method Summary | |
---|---|
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. |
Methods inherited from interface org.red5.server.api.event.IEventHandler |
---|
handleEvent |
Method Detail |
---|
boolean start(IScope scope)
scope
- the new scope object
true
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 object
true
to allow, false
to denyvoid disconnect(IConnection conn, IScope scope)
conn
- Connection objectscope
- Scope objectboolean addChildScope(IBasicScope scope)
scope
- Scope that will be added
true
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 client
true
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 deny
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |