com.sun.emp.cci.eci
Class ECIConnectionSpec

java.lang.Object
  |
  +--com.sun.emp.cci.eci.ECIConnectionSpec
All Implemented Interfaces:
ConnectionSpec

public class ECIConnectionSpec
extends Object
implements ConnectionSpec

The specification of an ECI Connection. This class contains the definition of a number of properties that govern an individual connection to an MTP system. These properties are:


Constructor Summary
ECIConnectionSpec()
          Constructor.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener pcl)
          Add a property change listener.
 void addPropertyChangeListener(String propName, PropertyChangeListener pcl)
          Add a property change listener for a named property.
 String getPassword()
          Get the password.
 String getUserName()
          Get the user name.
 void removePropertyChangeListener(PropertyChangeListener pcl)
          Remove a property change listener.
 void removePropertyChangeListener(String propName, PropertyChangeListener pcl)
          Add a property change listener for a named property.
 void setPassword(String newPassword)
          Set the password.
 void setUserName(String newUserName)
          Set the user name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECIConnectionSpec

public ECIConnectionSpec()
Constructor. Uses no userName and password.

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener pcl)
Add a property change listener.

Parameters:
pcl - The listener.

addPropertyChangeListener

public void addPropertyChangeListener(String propName,
                                      PropertyChangeListener pcl)
Add a property change listener for a named property.

Parameters:
pcl - The listener.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener pcl)
Remove a property change listener.

Parameters:
pcl - The listener.

removePropertyChangeListener

public void removePropertyChangeListener(String propName,
                                         PropertyChangeListener pcl)
Add a property change listener for a named property.

Parameters:
propName - The name of the property.
pcl - The listener.

setPassword

public void setPassword(String newPassword)
Set the password.

The password may be null to indicate to password being provided.

Parameters:
newPassword - The new password.

getPassword

public String getPassword()
Get the password.

Returns:
The password.

setUserName

public void setUserName(String newUserName)
Set the user name.

The user name may be null to indicate to password being provided.

Parameters:
newUserName - The new user name.

getUserName

public String getUserName()
Get the user name.

Returns:
The user name.