|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IServer
The interface that represents the Red5 server.
Field Summary | |
---|---|
static String |
ID
Server ID |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final String ID
Method Detail |
---|
IGlobalScope getGlobal(String name)
name
- Name of the global scope
void registerGlobal(IGlobalScope scope)
scope
- The global scope to registerIGlobalScope lookupGlobal(String hostName, String contextPath)
hostName
- The name of the hostcontextPath
- The path in the host
null
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 to
true
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 unmap
true
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 remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |