|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ninecode.email.connector.EmailConnectionData
Java bean for holding connection info. This information is connection specific rather than configuration specific. We use this same class twice, at the client as a ConnectionSpec and at the server as a ConnectionRequestInfo.
Field Summary | |
protected String |
mMailProperties
The current value of mail.XXXX properties. |
protected PropertyChangeSupport |
mPropertySupport
Support for bound properties. |
protected String |
mStorePassword
The current value of Store password. |
protected String |
mStoreUserName
The current value of the Store user name. |
protected String |
mTransportPassword
The current value of Transport password. |
protected String |
mTransportUserName
The current value of Transport user name. |
Constructor Summary | |
EmailConnectionData()
Creates a new EmailConnectionData. |
|
EmailConnectionData(EmailConnectionData data)
Creates a new EmailConnectionData object that is a copy of another. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Bound property support. |
protected Object |
clone()
Creates and returns a copy of this object. |
EmailConnectionData |
dup()
Create a copy of this bean. |
boolean |
equals(Object other)
Returns true if the other object is equal to this one. |
String |
getMailProperties()
Getter for property MailProperties. |
String |
getPassword()
Getter for property password. |
String |
getStorePassword()
Getter for property storePassword. |
String |
getStoreUserName()
Getter for property storeUserName. |
String |
getTransportPassword()
Getter for property transportPassword. |
String |
getTransportUserName()
Getter for property Transport username. |
String |
getUserName()
Getter for property userName. |
int |
hashCode()
Returns a hash code for this object. |
void |
override(EmailConnectionData data)
Override this bean's empty properties with that bean's properties. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Bound property support. |
void |
setMailProperties(String properties)
Setter for property mailProperties. |
void |
setPassword(String password)
Setter for property password. |
void |
setStorePassword(String password)
Setter for property storePassword. |
void |
setStoreUserName(String user)
Setter for property storeUserName. |
void |
setTransportPassword(String password)
Setter for property transportPassword. |
void |
setTransportUserName(String user)
Setter for property Transport username. |
void |
setUserName(String user)
Setter for property userName. |
boolean |
storeEquals(Object other)
Returns true if the other object has a Store configuration
equal to this one. |
String |
toString()
Converts this data object into a printable string. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String mTransportUserName
protected String mTransportPassword
protected String mStoreUserName
protected String mStorePassword
protected String mMailProperties
|mail.from=tobias@linkone.com|mail.smtp.auth=true|
EmailProperties
protected PropertyChangeSupport mPropertySupport
Constructor Detail |
public EmailConnectionData()
public EmailConnectionData(EmailConnectionData data)
Method Detail |
public boolean equals(Object other)
true
if the other object is equal to this one.
The equals method is required to be implemented by the
ConnectionSpec and ConnectionRequestInfo contracts.
equals
in interface ConnectionRequestInfo
equals
in class Object
true
if the other object is equal to this one.public boolean storeEquals(Object other)
true
if the other object has a Store configuration
equal to this one.
The mail properties are not considered in the comparison.
true
if the other object has a Store configuration
the same as this one.public int hashCode()
hashCode
in interface ConnectionRequestInfo
hashCode
in class Object
protected Object clone() throws CloneNotSupportedException
will be true, and that the expression:x.clone() != x
will be true, but these are not absolute requirements. While it is typically the case that:x.clone().getClass() == x.getClass()
will be true, this is not an absolute requirement. Copying an object will typically entail creating a new instance of its class, but it also may require copying of internal data structures as well. No constructors are called.x.clone().equals(x)
The method clone for class Object performs a specific cloning operation. First, if the class of this object does not implement the interface Cloneable, then a CloneNotSupportedException is thrown. Note that all arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment; the contents of the fields are not themselves cloned. Thus, this method performs a "shallow copy" of this object, not a "deep copy" operation.
The class Object does not itself implement the interface Cloneable, so calling the clone method on an object whose class is Object will result in throwing an exception at run time. The clone method is implemented by the class Object as a convenient, general utility for subclasses that implement the interface Cloneable, possibly also overriding the clone method, in which case the overriding definition can refer to this utility definition by the call:
super.clone()
clone
in class Object
CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.
OutOfMemoryError
- if there is not enough memory.Cloneable
public EmailConnectionData dup() throws ResourceException
ResourceException
public String getTransportUserName()
public void setTransportUserName(String user)
user
- New value of property transportUsername.public String getTransportPassword()
public void setTransportPassword(String password)
password
- New value of property transportPassword.public String getStoreUserName()
public void setStoreUserName(String user)
user
- New value of property storeUserName.public String getStorePassword()
public void setStorePassword(String password)
password
- New value of property storePassword.public String getMailProperties()
public void setMailProperties(String properties)
public String getPassword()
public void setPassword(String password)
password
- New value of property transportPassword.public String getUserName()
public void setUserName(String user)
user
- New value of property transportUserName.public void override(EmailConnectionData data)
data
- The bean that has data to override this one's.public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to add to the list of PropertyChangeListeners.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to remove from the list of PropertyChangeListeners.public String toString()
toString
in class Object
|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |