Class LinkedConnectionManager
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedConnectionManager
- All Implemented Interfaces:
IConnectionManager
Connection manager implementation that combines two connection managers.
- Since:
- 8.3
- Author:
- Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionstatic IConnectionManager
createFor
(IConnectionManager manager, IConnectionManager defaultManager) This method returns a connection manager implementation that combines both the connection managers that are passed to this method.getConnection
(String name) This method returns a connection with the specified name.String[]
Returns all available connection names;String[]
This method returns all the available names for a specified type.getHttpConnection
(String name) getMailConnection
(String name) This method returns the mail connection with the specified name.getResourceConnection
(String name) This method returns the resource connection with the specified name.getSoapConnection
(String name) getSqlConnection
(String name) This method returns the SQL connection with the specified name.boolean
hasConnection
(String name) This method can be used to check whether this manager has a connection for the given name.boolean
hasConnection
(String name, ConnectionType type) This method can be used to check if this manager has a connection for the given name and type.
-
Method Details
-
createFor
public static IConnectionManager createFor(IConnectionManager manager, IConnectionManager defaultManager) This method returns a connection manager implementation that combines both the connection managers that are passed to this method.- Parameters:
manager
- The connection manager that should be used first when requesting a connection (optional).defaultManager
- The connection manager that should be used when the first did not supply a connection implementation (mandatory).- Returns:
- a connection manager implementation that combines both the connection managers that are passed to this method.
-
getSqlConnection
Description copied from interface:IConnectionManager
This method returns the SQL connection with the specified name.- Specified by:
getSqlConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the requested SQL connection.- Returns:
- Connection object for the specified name.
-
getSoapConnection
- Specified by:
getSoapConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the requested SOAP connection.- Returns:
- Connection object for the specified name.
-
getResourceConnection
Description copied from interface:IConnectionManager
This method returns the resource connection with the specified name.- Specified by:
getResourceConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the requested resource connection.- Returns:
- Connection object for the specified name.
-
getMailConnection
Description copied from interface:IConnectionManager
This method returns the mail connection with the specified name.- Specified by:
getMailConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the requested mail connection.- Returns:
- Connection object for the specified name.
-
getHttpConnection
- Specified by:
getHttpConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the requested http connection.- Returns:
- Connection object for the specified name.
-
getConnectionNames
Description copied from interface:IConnectionManager
This method returns all the available names for a specified type.- Specified by:
getConnectionNames
in interfaceIConnectionManager
- Parameters:
type
- The connection type, may not be null.- Returns:
- The connection names, never null.
-
getConnectionNames
Description copied from interface:IConnectionManager
Returns all available connection names;- Specified by:
getConnectionNames
in interfaceIConnectionManager
- Returns:
- the connection names, never null.
-
hasConnection
Description copied from interface:IConnectionManager
This method can be used to check if this manager has a connection for the given name and type.- Specified by:
hasConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the connection, may not be null.type
- The connection type, may not be null.- Returns:
- True is there is a connection for the given name and type, otherwise false.
-
hasConnection
Description copied from interface:IConnectionManager
This method can be used to check whether this manager has a connection for the given name.- Specified by:
hasConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the connection, may not be null.- Returns:
- True if there is a connection for the given name, otherwise false.
-
getConnection
Description copied from interface:IConnectionManager
This method returns a connection with the specified name.- Specified by:
getConnection
in interfaceIConnectionManager
- Parameters:
name
- The name of the requested connection- Returns:
- Connection object for the specified name
-