public class IdcClientManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PROTOCOL |
static String |
HTTPS_PROTOCOL |
static String |
IDC_PROTOCOL |
static String |
IDCS_PROTOCOL |
static String |
JAXWS_PROTOCOL |
static String |
WSDL_URL_IDENTIFIER |
| Constructor and Description |
|---|
IdcClientManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClient(String name, IdcClient client)
Register a client with a given name
|
IdcClient |
createClient(String url)
Create a new client instance based on the given URL.
|
IdcClient |
getClient(String name)
Retrieve a client by name
|
Collection<String> |
getClientNames() |
ConnectionPoolManager |
getConnectionPoolManager() |
IdcFilterManager |
getFilterManager() |
IdcClientProvider |
getProvider(String protocol)
Retrieve a provider by protocol name
|
IdcClientProvider |
getProvider(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 |
registerDmsFilter() |
void |
registerProvider(IdcClientProvider provider) |
void |
registerProvider(String protocol, IdcClientProvider provider)
Register a provider.
|
void |
removeClient(String name)
Remove a client by name
|
public static final String WSDL_URL_IDENTIFIER
public static final String IDC_PROTOCOL
public static final String IDCS_PROTOCOL
public static final String HTTP_PROTOCOL
public static final String HTTPS_PROTOCOL
public static final String JAXWS_PROTOCOL
protected void registerDmsFilter()
public <T> Iterable<T> loadServices(Class<T> service)
The default implementation of this method uses ServiceLoader.load(Class), but this can be overriden in subclasses to use a different mechanism
service - The interface or abstract class representing the servicepublic void registerProvider(IdcClientProvider provider)
public void registerProvider(String protocol, IdcClientProvider provider)
protocol - the protocol of the URL to create the client (i.e. idc, http, etc.)provider - the provider implementationpublic IdcClientProvider getProvider(String protocol)
protocol - the protocol namepublic IdcClientProvider getProvider(String protocol, String url)
protocol - the protocol nameurl - the url that the client is accessingpublic ConnectionPoolManager getConnectionPoolManager()
public IdcFilterManager getFilterManager()
public IdcClient createClient(String url) throws IdcClientException
url - the url to the Content ServerIdcClientException - if the client cannot be createdpublic IdcClient getClient(String name)
name - the client namepublic void addClient(String name, IdcClient client)
name - the client nameclient - the client instancepublic void removeClient(String name)
name - the client namepublic Collection<String> getClientNames()