Package org.red5.server.plugin
Class Red5Plugin
java.lang.Object
org.red5.server.plugin.Red5Plugin
- All Implemented Interfaces:
IRed5Plugin
Provides more features to the plug-in system.
- Author:
- Paul Gregoire ([email protected])
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoStart()Lifecycle method called when the plug-in is started.voiddoStop()Lifecycle method called when the plug-in is stopped.getName()Returns a name / identifier for the plug-in.Return the server reference.voidinit()Initialize the plug-invoidsetApplication(MultiThreadedApplicationAdapter application) Set the application making use of this plug-in.voidsetApplicationContext(ApplicationContext context) Sets the top-most ApplicationContext within Red5.voidSets a reference to the server.
-
Field Details
-
context
-
server
-
-
Constructor Details
-
Red5Plugin
public Red5Plugin()
-
-
Method Details
-
doStart
Lifecycle method called when the plug-in is started.- Specified by:
doStartin interfaceIRed5Plugin- Throws:
Exception- on start error
-
doStop
Lifecycle method called when the plug-in is stopped.- Specified by:
doStopin interfaceIRed5Plugin- Throws:
Exception- on stop error
-
init
public void init()Initialize the plug-in -
getName
Returns a name / identifier for the plug-in.- Specified by:
getNamein interfaceIRed5Plugin- Returns:
- plug-in's name
-
setApplicationContext
Sets the top-most ApplicationContext within Red5.- Specified by:
setApplicationContextin interfaceIRed5Plugin- Parameters:
context- application context
-
getServer
Return the server reference.- Returns:
- server
-
setServer
Sets a reference to the server.- Specified by:
setServerin interfaceIRed5Plugin- Parameters:
server- server
-
setApplication
Set the application making use of this plug-in.- Parameters:
application- application
-