Package org.red5.server
Class CoreHandler
java.lang.Object
org.red5.server.CoreHandler
- All Implemented Interfaces:
IEventHandler
,IScopeHandler
,CoreHandlerMXBean
Base IScopeHandler implementation
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addChildScope
(IBasicScope scope) Called just before a child scope is added.boolean
connect
(IConnection conn, IScope scope) Connects client to the scopeboolean
connect
(IConnection conn, IScope scope, Object[] params) Connects client to the scopevoid
disconnect
(IConnection conn, IScope scope) Called just after the a connection is disconnected.boolean
handleEvent
(IEvent event) Handle an event.boolean
Called just before a client enters the scope.void
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 invocationboolean
Called when a scope is created for the first time.void
Called just before a scope is disposed.
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
CoreHandler
public CoreHandler()
-
-
Method Details
-
addChildScope
Called just before a child scope is added.- Specified by:
addChildScope
in interfaceIScopeHandler
- Parameters:
scope
- Scope that will be added- Returns:
true
to allow,false
to deny
-
connect
Connects client to the scope- Specified by:
connect
in interfaceCoreHandlerMXBean
- Parameters:
conn
- Client connectionscope
- Scope- Returns:
- true if client was registered within scope, false otherwise
-
connect
Connects client to the scope- Specified by:
connect
in interfaceCoreHandlerMXBean
- Specified by:
connect
in interfaceIScopeHandler
- Parameters:
conn
- Client connectionscope
- Scopeparams
- Parameters passed from client side with connect call- Returns:
- true if client was registered within scope, false otherwise
-
disconnect
Called just after the a connection is disconnected.- Specified by:
disconnect
in interfaceCoreHandlerMXBean
- Specified by:
disconnect
in interfaceIScopeHandler
- Parameters:
conn
- Connection objectscope
- Scope object
-
join
Called just before a client enters the scope.- Specified by:
join
in interfaceCoreHandlerMXBean
- Specified by:
join
in interfaceIScopeHandler
- Parameters:
client
- Client objectscope
- Scope that is joined by client- Returns:
true
to allow,false
to deny connection
-
leave
Called just after the client leaves the scope.- Specified by:
leave
in interfaceCoreHandlerMXBean
- Specified by:
leave
in interfaceIScopeHandler
- Parameters:
client
- Client objectscope
- Scope object
-
removeChildScope
Called just after a child scope has been removed.- Specified by:
removeChildScope
in interfaceCoreHandlerMXBean
- Specified by:
removeChildScope
in interfaceIScopeHandler
- Parameters:
scope
- Scope that has been removed
-
serviceCall
Remote method invocation- Specified by:
serviceCall
in interfaceCoreHandlerMXBean
- Specified by:
serviceCall
in interfaceIScopeHandler
- Parameters:
conn
- Connection to invoke method oncall
- Service call context- Returns:
- true on success
-
start
Called when a scope is created for the first time.- Specified by:
start
in interfaceCoreHandlerMXBean
- Specified by:
start
in interfaceIScopeHandler
- Parameters:
scope
- the new scope object- Returns:
true
to allow,false
to deny
-
stop
Called just before a scope is disposed.- Specified by:
stop
in interfaceCoreHandlerMXBean
- Specified by:
stop
in interfaceIScopeHandler
- Parameters:
scope
- Scope that id disposed
-
handleEvent
Handle an event.- Specified by:
handleEvent
in interfaceCoreHandlerMXBean
- Specified by:
handleEvent
in interfaceIEventHandler
- Parameters:
event
- to handle- Returns:
- true if event was handled, false if it should bubble
-