Package org.red5.server.api.service
Interface IServiceHandlerProvider
- All Known Subinterfaces:
IClientSharedObject,IGlobalScope,IScope,ISharedObject,ISharedObjectBase,ISharedObjectHandlerProvider
- All Known Implementing Classes:
ClientSharedObject,GlobalScope,RoomScope,Scope,SharedObjectScope,WebScope
public interface IServiceHandlerProvider
Supports registration and lookup of service handlers.
- Author:
- The Red5 Project, Joachim Bauch (jojo@struktur.de)
-
Method Summary
Modifier and TypeMethodDescriptiongetServiceHandler(String name) Return a previously registered service handler.Get list of registered service handler names.voidregisterServiceHandler(String name, Object handler) Register an object that provides methods which can be called from a client.voidUnregister service handler.
-
Method Details
-
registerServiceHandler
Register an object that provides methods which can be called from a client.
Example:
If you registered a handler with the name "one.two
" that provides a method "callMe
", you can call a method "one.two.callMe
" from the client.- Parameters:
name- the name of the handlerhandler- the handler object
-
unregisterServiceHandler
Unregister service handler.- Parameters:
name- the name of the handler
-
getServiceHandler
Return a previously registered service handler.- Parameters:
name- the name of the handler to return- Returns:
- the previously registered handler
-
getServiceHandlerNames
Get list of registered service handler names.- Returns:
- the names of the registered handlers
-