public interface IScope extends IBasicScope, ResourcePatternResolver, IServiceHandlerProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
SEPARATOR
Scope separator
|
CLASSPATH_ALL_URL_PREFIXCLASSPATH_URL_PREFIX| Modifier and Type | Method and Description |
|---|---|
boolean |
addChildScope(IBasicScope scope)
Adds scope as a child scope.
|
boolean |
connect(IConnection conn)
Adds given connection to the scope
|
boolean |
connect(IConnection conn,
Object[] params)
Add given connection to the scope, overloaded for parameters pass case.
|
boolean |
createChildScope(String name)
Creates child scope with name given and returns success value.
|
void |
disconnect(IConnection conn)
Removes given connection from list of scope connections.
|
Object |
getAttribute(String name)
Get attribute by name
|
Set<String> |
getAttributeNames()
Return attribute names
|
Map<String,Object> |
getAttributes()
Return scope attributes
|
IBasicScope |
getBasicScope(ScopeType type,
String name)
Get a child scope by type and name.
|
Set<String> |
getBasicScopeNames(ScopeType type) |
IBroadcastScope |
getBroadcastScope(String name)
Return the broadcast scope for a given name.
|
Set<IConnection> |
getClientConnections()
Get all current connections.
|
Set<IClient> |
getClients()
Get a set of connected clients.
|
Collection<Set<IConnection>> |
getConnections()
Deprecated.
Use
getClientConnections() instead |
IContext |
getContext()
Returns scope context
|
String |
getContextPath()
Return context path.
|
IScopeHandler |
getHandler()
Return handler of the scope
|
IScope |
getScope(String name)
Return scope by name
|
Set<String> |
getScopeNames()
Get a set of the child scope names.
|
IScopeStatistics |
getStatistics()
Return statistics informations about the scope.
|
boolean |
hasAttribute(String name)
Whether or not an attribute exists, keyed by the given name
|
boolean |
hasChildScope(ScopeType type,
String name)
Checks whether scope has a child scope with given name and type
|
boolean |
hasChildScope(String name)
Check to see if this scope has a child scope matching a given name.
|
boolean |
hasHandler()
Checks whether scope has handler or not.
|
IConnection |
lookupConnection(IClient client)
Lookup connection for a given client.
|
Set<IConnection> |
lookupConnections(IClient client)
Deprecated.
Use
lookupConnection(IClient) instead |
boolean |
removeAttribute(String name)
Remove attribute by name
|
void |
removeChildren()
Removes all the child scopes
|
void |
removeChildScope(IBasicScope scope)
Removes scope from the children scope list.
|
boolean |
setAttribute(String name,
Object value)
Set attribute by name
|
getDepth, getName, getParent, getPath, getStore, getType, hasParent, isConnectionAllowed, isScopeAllowed, isValid, setKeepDelay, setSecurityHandlersdispatchEventhandleEventnotifyEventaddEventListener, getEventListeners, removeEventListenergetResourcesgetClassLoader, getResourcegetServiceHandler, getServiceHandlerNames, registerServiceHandler, unregisterServiceHandlerstatic final String SEPARATOR
boolean hasChildScope(String name)
name - the name of the child scopeboolean hasChildScope(ScopeType type, String name)
type - Child scope typename - Child scope nameboolean createChildScope(String name)
name - New child scope nameboolean addChildScope(IBasicScope scope)
scope - Scope givenvoid removeChildScope(IBasicScope scope)
scope - Scope givenvoid removeChildren()
Set<String> getScopeNames()
IBroadcastScope getBroadcastScope(String name)
name - nameIBasicScope getBasicScope(ScopeType type, String name)
type - Child scope typename - Name of the child scopeIScope getScope(String name)
name - Scope nameSet<IClient> getClients()
IClient.getConnections() method.IClient.getConnections(IScope)@Deprecated Collection<Set<IConnection>> getConnections()
getClientConnections() insteadSet<IConnection> getClientConnections()
@Deprecated Set<IConnection> lookupConnections(IClient client)
lookupConnection(IClient) insteadclient - objectIConnection lookupConnection(IClient client)
client - objectIContext getContext()
boolean hasHandler()
IScopeHandler getHandler()
String getContextPath()
boolean connect(IConnection conn)
conn - Given connectionboolean connect(IConnection conn, Object[] params)
conn - Given connectionparams - Parameters passedvoid disconnect(IConnection conn)
conn - Connection givenIScopeStatistics getStatistics()
boolean setAttribute(String name, Object value)
name - namevalue - valueObject getAttribute(String name)
name - nameboolean hasAttribute(String name)
name - nameboolean removeAttribute(String name)
name - nameCopyright © 2005–2017 Red5. All rights reserved.