Class ConnectionManager

java.lang.Object
com.aquima.interactions.framework.connectivity.ConnectionManager
All Implemented Interfaces:
IConnectionManager

public class ConnectionManager extends Object implements IConnectionManager
Connection manager implementation that may be used to provide application connections.
Since:
6.3
Author:
O. Kerpershoek
  • Constructor Details

    • ConnectionManager

      public ConnectionManager()
      Constructs an empty the connection manager.
    • ConnectionManager

      public ConnectionManager(List<IConnection> connections)
      Constructs the connection manager with a list of objects implementing the IConnection interface.
      Parameters:
      connections - a list of objects implementing the IConnection interface.
  • Method Details

    • setConnections

      public void setConnections(List<IConnection> connections)
      This method sets a list of objects implementing the IConnection interface.
      Parameters:
      connections - a list of objects implementing the IConnection interface.
    • getConnection

      public IConnection getConnection(String name)
      Description copied from interface: IConnectionManager
      This method returns a connection with the specified name.
      Specified by:
      getConnection in interface IConnectionManager
      Parameters:
      name - The name of the requested connection
      Returns:
      Connection object for the specified name
    • hasConnection

      public boolean hasConnection(String name, ConnectionType type)
      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 interface IConnectionManager
      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

      public boolean hasConnection(String name)
      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 interface IConnectionManager
      Parameters:
      name - The name of the connection, may not be null.
      Returns:
      True if there is a connection for the given name, otherwise false.
    • getResourceConnection

      public IResourceConnection getResourceConnection(String name)
      Description copied from interface: IConnectionManager
      This method returns the resource connection with the specified name.
      Specified by:
      getResourceConnection in interface IConnectionManager
      Parameters:
      name - The name of the requested resource connection.
      Returns:
      Connection object for the specified name.
    • getSoapConnection

      public ISoapConnection getSoapConnection(String name)
      Specified by:
      getSoapConnection in interface IConnectionManager
      Parameters:
      name - The name of the requested SOAP connection.
      Returns:
      Connection object for the specified name.
    • getSqlConnection

      public ISqlConnection getSqlConnection(String name)
      Description copied from interface: IConnectionManager
      This method returns the SQL connection with the specified name.
      Specified by:
      getSqlConnection in interface IConnectionManager
      Parameters:
      name - The name of the requested SQL connection.
      Returns:
      Connection object for the specified name.
    • getMailConnection

      public IMailConnection getMailConnection(String name)
      Description copied from interface: IConnectionManager
      This method returns the mail connection with the specified name.
      Specified by:
      getMailConnection in interface IConnectionManager
      Parameters:
      name - The name of the requested mail connection.
      Returns:
      Connection object for the specified name.
    • getHttpConnection

      public IHttpConnection getHttpConnection(String name)
      Specified by:
      getHttpConnection in interface IConnectionManager
      Parameters:
      name - The name of the requested http connection.
      Returns:
      Connection object for the specified name.
    • getConnectionNames

      public String[] getConnectionNames(ConnectionType type)
      Description copied from interface: IConnectionManager
      This method returns all the available names for a specified type.
      Specified by:
      getConnectionNames in interface IConnectionManager
      Parameters:
      type - The connection type, may not be null.
      Returns:
      The connection names, never null.
    • getConnectionNames

      public String[] getConnectionNames()
      Description copied from interface: IConnectionManager
      Returns all available connection names;
      Specified by:
      getConnectionNames in interface IConnectionManager
      Returns:
      the connection names, never null.