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 Summary
Constructors Constructor Description ResourceConnection(String name, IResource resource)
Constructs the connection object with the required parameters.ResourceConnection(String name, String path, IResourceManager manager)
Constructs the connection object with the required parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
This method returns the name of the connection object.IResource
getResource()
This method returns the resource of the connection.ConnectionType
getType()
This method returns the type of the connection object.
-
-
-
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
-
getResource
public IResource getResource()
Description copied from interface:IResourceConnection
This method returns the resource of the connection.- Specified by:
getResource
in interfaceIResourceConnection
- 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 interfaceIConnection
- 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 interfaceIConnection
- Returns:
- the type of the connection object.
-
-