public interface IServer
Modifier and Type | Method and Description |
---|---|
void |
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.
|
IGlobalScope |
getGlobal(String name)
Get the global scope with given name.
|
Iterator<String> |
getGlobalNames()
Get list of global scope names.
|
Iterator<IGlobalScope> |
getGlobalScopes()
Get list of global scopes.
|
Map<String,String> |
getMappingTable()
Query informations about the global scope mappings.
|
IGlobalScope |
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.
|
static final String ID
IGlobalScope getGlobal(String name)
name
- Name of the global scopevoid registerGlobal(IGlobalScope scope)
scope
- The global scope to registerIGlobalScope lookupGlobal(String hostName, String contextPath)
hostName
- The name of the hostcontextPath
- The path in the hostnull
boolean addMapping(String hostName, String contextPath, String globalName)
hostName
- The name of the host to mapcontextPath
- The path to mapglobalName
- The name of the global scope to map totrue
if the name was mapped, otherwise
false
boolean removeMapping(String hostName, String contextPath)
hostName
- The name of the host to unmapcontextPath
- The path for this host to unmaptrue
if the global scope was unmapped, otherwise
false
Map<String,String> getMappingTable()
Iterator<String> getGlobalNames()
Iterator<IGlobalScope> getGlobalScopes()
void addListener(IScopeListener listener)
listener
- the listener to addvoid addListener(IConnectionListener listener)
listener
- the listener to addvoid removeListener(IScopeListener listener)
listener
- the listener to removevoid removeListener(IConnectionListener listener)
listener
- the listener to removeCopyright © 2006-2012 The Red5 Project