Package org.red5.server
Class CoreHandler
java.lang.Object
org.red5.server.CoreHandler
- All Implemented Interfaces:
IEventHandler,IScopeHandler,CoreHandlerMXBean
Base IScopeHandler implementation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddChildScope(IBasicScope scope) Called just before a child scope is added.booleanconnect(IConnection conn, IScope scope) Connects client to the scopebooleanconnect(IConnection conn, IScope scope, Object[] params) Connects client to the scopevoiddisconnect(IConnection conn, IScope scope) Called just after the a connection is disconnected.booleanhandleEvent(IEvent event) Handle an event.booleanCalled just before a client enters the scope.voidCalled just after the client leaves the scope.voidremoveChildScope(IBasicScope scope) Called just after a child scope has been removed.booleanserviceCall(IConnection conn, IServiceCall call) Remote method invocationbooleanCalled when a scope is created for the first time.voidCalled 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:
addChildScopein interfaceIScopeHandler- Parameters:
scope- Scope that will be added- Returns:
true
to allow,false
to deny
-
connect
Connects client to the scope- Specified by:
connectin interfaceCoreHandlerMXBean- Parameters:
conn- Client connectionscope- Scope- Returns:
- true if client was registered within scope, false otherwise
-
connect
Connects client to the scope- Specified by:
connectin interfaceCoreHandlerMXBean- Specified by:
connectin 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:
disconnectin interfaceCoreHandlerMXBean- Specified by:
disconnectin interfaceIScopeHandler- Parameters:
conn- Connection objectscope- Scope object
-
join
Called just before a client enters the scope.- Specified by:
joinin interfaceCoreHandlerMXBean- Specified by:
joinin 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:
leavein interfaceCoreHandlerMXBean- Specified by:
leavein interfaceIScopeHandler- Parameters:
client- Client objectscope- Scope object
-
removeChildScope
Called just after a child scope has been removed.- Specified by:
removeChildScopein interfaceCoreHandlerMXBean- Specified by:
removeChildScopein interfaceIScopeHandler- Parameters:
scope- Scope that has been removed
-
serviceCall
Remote method invocation- Specified by:
serviceCallin interfaceCoreHandlerMXBean- Specified by:
serviceCallin 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:
startin interfaceCoreHandlerMXBean- Specified by:
startin interfaceIScopeHandler- Parameters:
scope- the new scope object- Returns:
true
to allow,false
to deny
-
stop
Called just before a scope is disposed.- Specified by:
stopin interfaceCoreHandlerMXBean- Specified by:
stopin interfaceIScopeHandler- Parameters:
scope- Scope that id disposed
-
handleEvent
Handle an event.- Specified by:
handleEventin interfaceCoreHandlerMXBean- Specified by:
handleEventin interfaceIEventHandler- Parameters:
event- to handle- Returns:
- true if event was handled, false if it should bubble
-