Package org.red5.server.api
Interface IServer
- All Known Implementing Classes:
Server
public interface IServer
The interface that represents the Red5 server.
- Author:
- The Red5 Project, Luke Hubbard (luke@codegent.com)
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IConnectionListener listener) Add listener to get notified about connection events.void
addListener
(IScopeListener listener) Add listener to get notified about scope events.boolean
addMapping
(String hostName, String contextPath, String globalName) Map a virtual hostname and a path to the name of a global scope.Get the global scope with given name.Get list of global scope names.Get list of global scopes.Query informations about the global scope mappings.lookupGlobal
(String hostName, String contextPath) Lookup the global scope for a host.void
registerGlobal
(IGlobalScope scope) Register a global scope.void
removeListener
(IConnectionListener listener) Remove listener that got notified about connection events.void
removeListener
(IScopeListener listener) Remove listener that got notified about scope events.boolean
removeMapping
(String hostName, String contextPath) Unregister a previously mapped global scope.
-
Field Details
-
ID
Server ID- See Also:
-
-
Method Details
-
getGlobal
Get the global scope with given name.- Parameters:
name
- Name of the global scope- Returns:
- the global scope
-
registerGlobal
Register a global scope.- Parameters:
scope
- The global scope to register
-
lookupGlobal
Lookup the global scope for a host.- Parameters:
hostName
- The name of the hostcontextPath
- The path in the host- Returns:
- The found global scope or
null
-
addMapping
Map a virtual hostname and a path to the name of a global scope.- Parameters:
hostName
- The name of the host to mapcontextPath
- The path to mapglobalName
- The name of the global scope to map to- Returns:
true
if the name was mapped, otherwisefalse
-
removeMapping
Unregister a previously mapped global scope.- Parameters:
hostName
- The name of the host to unmapcontextPath
- The path for this host to unmap- Returns:
true
if the global scope was unmapped, otherwisefalse
-
getMappingTable
Query informations about the global scope mappings.- Returns:
- Map containing informations about the mappings
-
getGlobalNames
Get list of global scope names.- Returns:
- Iterator for names of global scopes
-
getGlobalScopes
Iterator<IGlobalScope> getGlobalScopes()Get list of global scopes.- Returns:
- Iterator for global scopes objects
-
addListener
Add listener to get notified about scope events.- Parameters:
listener
- the listener to add
-
addListener
Add listener to get notified about connection events.- Parameters:
listener
- the listener to add
-
removeListener
Remove listener that got notified about scope events.- Parameters:
listener
- the listener to remove
-
removeListener
Remove listener that got notified about connection events.- Parameters:
listener
- the listener to remove
-