Class ResourceConnection

    • Constructor Detail

      • 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)
                           throws ResourceException
        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 Detail

      • 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.