Package oracle.stellent.ridc
Class IdcClientManager
java.lang.Object
oracle.stellent.ridc.IdcClientManager
- Direct Known Subclasses:
SimpleIdcClientManager
Manages the IDC clients. Can be used to create new clients by URL and also store and manage instances of the clients
by name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Register a client with a given namecreateClient
(String url) Create a new client instance based on the given URL.Retrieve a client by namegetProvider
(String protocol) Retrieve a provider by protocol namegetProvider
(String protocol, String url) Returns the provider based on the protocol as well as the URL.<T> Iterable<T>
loadServices
(Class<T> service) Loads implementations of a specific interface or class.protected void
void
registerProvider
(String protocol, IdcClientProvider provider) Register a provider.void
registerProvider
(IdcClientProvider provider) void
removeClient
(String name) Remove a client by name
-
Field Details
-
WSDL_URL_IDENTIFIER
- See Also:
-
IDC_PROTOCOL
- See Also:
-
IDCS_PROTOCOL
- See Also:
-
HTTP_PROTOCOL
- See Also:
-
HTTPS_PROTOCOL
- See Also:
-
JAXWS_PROTOCOL
- See Also:
-
-
Constructor Details
-
IdcClientManager
@Exported public IdcClientManager()
-
-
Method Details
-
registerDmsFilter
@Concealed protected void registerDmsFilter() -
loadServices
Loads implementations of a specific interface or class.The default implementation of this method uses
ServiceLoader.load(Class)
, but this can be overriden in subclasses to use a different mechanism- Parameters:
service
- The interface or abstract class representing the service- Returns:
- A new service loader
-
registerProvider
-
registerProvider
Register a provider. A provider is responsible for handling the lifecycle of an IdcClient object.- Parameters:
protocol
- the protocol of the URL to create the client (i.e. idc, http, etc.)provider
- the provider implementation
-
getProvider
Retrieve a provider by protocol name- Parameters:
protocol
- the protocol name- Returns:
- the client provider or null if not found
-
getProvider
Returns the provider based on the protocol as well as the URL.- Parameters:
protocol
- the protocol nameurl
- the url that the client is accessing- Returns:
- the provider, or null
-
getConnectionPoolManager
- Returns:
- an instance of the connection pool manager
-
getFilterManager
- Returns:
- an instance of the filter manager
-
createClient
Create a new client instance based on the given URL.- Parameters:
url
- the url to the Content Server- Returns:
- the IdcClient instance
- Throws:
IdcClientException
- if the client cannot be created
-
getClient
Retrieve a client by name- Parameters:
name
- the client name- Returns:
- the client or null if not found
-
addClient
Register a client with a given name- Parameters:
name
- the client nameclient
- the client instance
-
removeClient
Remove a client by name- Parameters:
name
- the client name
-
getClientNames
-