Package org.red5.server.api
Interface IClientRegistry
- All Known Implementing Classes:
ClientRegistry
public interface IClientRegistry
Provides a registry of client objects. You can lookup a client by its client id / session id using lookupClient method. This interface implementations also create new client objects from given params, usually passed from client-side Flex/Flash application upon initial connection.
- Author:
- The Red5 Project, Luke Hubbard (luke@codegent.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a client to the registry.boolean
Check if a client with a given id exists.lookupClient
(String id) Return an existing client from a client id.Create a new client client object from connection params.
-
Method Details
-
hasClient
Check if a client with a given id exists.- Parameters:
id
- the id of the client to check for- Returns:
true
if the client exists,false
otherwise
-
newClient
Create a new client client object from connection params.- Parameters:
params
- the parameters the client passed during connection- Returns:
- the new client
- Throws:
ClientNotFoundException
- no client could be created from the passed parametersClientRejectedException
- the client is not allowed to connect
-
lookupClient
Return an existing client from a client id.- Parameters:
id
- the id of the client to return- Returns:
- the client object
- Throws:
ClientNotFoundException
- no client with the passed id exists
-
addClient
Adds a client to the registry.- Parameters:
client
- client
-