The base connection information for the E-Mail jConduit.
This class contains the base connection information for the Email jConduit.
Email_Base
public Email_Base()
Email_Base default constructor.
Email_Base
public Email_Base(String newname,
String address,
String port,
String user,
String passwd,
String from)Email_Base constructor.
newname - Name of this email configuration.address - Address (or name) of email server.port - Port number string of email server.user - User ID on email server.passwd - Password of User on email server.from - "Sent from:" email tag.
Email_Base
public Email_Base(String newname,
String address,
int port,
String user,
String passwd,
String from)Email_Base constructor.
newname - Name of this email configuration.address - Address (or name) of email server.port - Port number of email server.user - User ID on email server.passwd - Password of User on email server.from - "Sent from:" email tag.
Email_Base
public Email_Base(ConduitHandler handler,
String name,
String address,
String port,
String user,
String passwd,
String from)Email_Base constructor.
handler - ConduitHandler for this configuration.name - Name of this email configuration.address - Address (or name) of email server.port - Port number of email server.user - User ID on email server.passwd - Password of User on email server.from - "Sent from:" email tag.
Email_Base
public Email_Base(ConduitHandler handler,
String newname,
String address,
int port,
String user,
String passwd,
String from)Email_Base constructor.
handler - ConduitHandler for this configuration.newname - Name of this email configuration.address - Address (or name) of email server.port - Port number of email server.user - User ID on email server.passwd - Password of User on email server.from - "Sent from:" email tag.
Email_Base
public Email_Base(ConduitHandler conduithandler,
MailRecord record,
String name,
String address,
String port,
String user,
String passwd,
String from)
throws ParseExceptionEmail_Base constructor.
conduithandler - Conduit handler for logging purposes.record - MailRecord to create this class from.name - Name of this email configuration.address - Address (or name) of email server.port - Port number of email server.user - User ID on email server.passwd - Password of User on email server.from - "Sent from:" email tag.
Email_Base
public Email_Base(ConduitHandler handler,
MailRecord record,
String newname,
String address,
int port,
String user,
String passwd,
String from)
throws ParseExceptionEmail_Base constructor.
handler - Conduit handler for logging purposes.record - MailRecord to create this class from.newname - Name of this email configuration.address - Address (or name) of email server.port - Port number of email server.user - User ID on email server.passwd - Password of User on email server.from - "Sent from:" email tag.
Email_Base
public Email_Base(MailRecord record,
Email_Base base)
throws ParseExceptionEmail_Base constructor.
record - MailRecord to create this class from.base - Email_Base to copy this class from.
Email_Base
public Email_Base(Email_Base base)
Email_Base constructor.
base - Email_Base to copy this class from.
getConduitHandler
public ConduitHandler getConduitHandler()
Getter for property conduitHandler.
- Value of property conduitHandler.
getFrom
public java.lang.String getFrom()
Getter for property from.
- getFrom in interface MailRecord
getHost
public java.lang.String getHost()
Getter for property host.
getName
public java.lang.String getName()
Getter for property name.
getPort
public int getPort()
Getter for property port.
getProps
public java.util.Properties getProps()
Getter for property props.
getPwd
public java.lang.String getPwd()
Getter for property pwd (User Password).
getUserid
public java.lang.String getUserid()
Getter for property userid.
- Value of property userid.
postToLog
protected void postToLog(ConduitHandler handler,
String message)This method will write a message to the ConduitHandler.
This method exists so that it can prevent an exception from being thrown if the ConduitHandler is null.
handler - the ConduitHandler instance.message - the message to post.
setConduitHandler
public void setConduitHandler(ConduitHandler conduitHandler)
Setter for property conduitHandler.
conduitHandler - New value of property conduitHandler.
setFrom
public void setFrom(java.lang.String from)
Setter for property from.
from - New value of property from.
setHost
public void setHost(java.lang.String host)
Setter for property host.
host - New value of property host.
setMailRecord
public void setMailRecord(MailRecord record)
throws ParseExceptionSetter for parent class MailRecord.
record - MailRecord record.
setName
public void setName(java.lang.String name)
Setter for property name.
name - New value of property name.
setPort
public void setPort(String port)
Setter for property port.
port - New value of property port.
setPort
public void setPort(int port)
Setter for property port.
port - New value of property port.
setProps
public void setProps(java.util.Properties props)
Setter for property props.
props - New value of property props.
setPwd
public void setPwd(java.lang.String pwd)
Setter for property pwd (User Password).
pwd - New value of property pwd.
setUserid
public void setUserid(java.lang.String userid)
Setter for property userid.
userid - New value of property userid.
toString
public String toString()
String representation of the Email_Base class.
- toString in interface MailRecord
- String String containing the representation of the Email_Base class.