Class ResourceConnection

java.lang.Object
com.aquima.interactions.foundation.connectivity.impl.ResourceConnection
All Implemented Interfaces:
IConnection, IResourceConnection

public class ResourceConnection extends Object implements IResourceConnection
This class implements the resource connection interface.
Since:
6.3
Author:
O. Kerpershoek
  • Constructor Details

    • ResourceConnection

      public ResourceConnection(String name, IResource resource)
      Constructs the connection object with the required parameters.
      Parameters:
      name - The (unique) name of the connection.
      resource - The resource that should be used.
    • ResourceConnection

      public ResourceConnection(String name, String path, IResourceManager manager)
      Constructs the connection object with the required parameters.
      Parameters:
      name - The (unique) name of the connection.
      path - The path to the resource.
      manager - The resource manager that should be used to locate the resource.
      Throws:
      ResourceException - This exception is thrown when the resource is not available.
  • Method Details

    • getResource

      public IResource getResource()
      Description copied from interface: IResourceConnection
      This method returns the resource of the connection.
      Specified by:
      getResource in interface IResourceConnection
      Returns:
      the resource of the connection.
    • getName

      public String getName()
      Description copied from interface: IConnection
      This method returns the name of the connection object. The name is used to uniquely identify the connection object.
      Specified by:
      getName in interface IConnection
      Returns:
      the name of the connection object.
    • getType

      public ConnectionType getType()
      Description copied from interface: IConnection
      This method returns the type of the connection object.
      Specified by:
      getType in interface IConnection
      Returns:
      the type of the connection object.