org.jSyncManager.Conduit.Email

Class Email_Base

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
PopMail, SmtpMail

public class Email_Base
extends MailRecord
implements java.io.Serializable

The base connection information for the E-Mail jConduit. This class contains the base connection information for the Email jConduit.
See Also:
SmtpMail, PopMail, Serialized Form

Field Summary

Fields inherited from class org.jSyncManager.API.Protocol.Util.StdApps.MailRecord

ADDRESSING_FLAG, ADDRESSING_FLAG_ROTATE, ADDRESSING_SENT_BCC, ADDRESSING_SENT_CC, ADDRESSING_SENT_TO, CONFIRM_DELIVERY_FLAG, CONFIRM_DELIVERY_FLAG_ROTATE, CONFIRM_READ_FLAG, CONFIRM_READ_FLAG_ROTATE, PRIORITY_FLAG, PRIORITY_FLAG_ROTATE, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, READ_FLAG, READ_FLAG_ROTATE, SIGNATURE_FLAG, SIGNATURE_FLAG_ROTATE, rb

Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord

ARCHIVED, BUSY, DATA_INCLUDED, DELETED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DIRTY, SECRET, SORT_DATABASE, attributes, category, data, index, inputData, recordID, recordSize

Constructor Summary

Email_Base()
Email_Base default constructor.
Email_Base(String newname, String address, String port, String user, String passwd, String from)
Email_Base constructor.
Email_Base(String newname, String address, int port, String user, String passwd, String from)
Email_Base constructor.
Email_Base(ConduitHandler handler, String name, String address, String port, String user, String passwd, String from)
Email_Base constructor.
Email_Base(ConduitHandler handler, String newname, String address, int port, String user, String passwd, String from)
Email_Base constructor.
Email_Base(ConduitHandler conduithandler, MailRecord record, String name, String address, String port, String user, String passwd, String from)
Email_Base constructor.
Email_Base(ConduitHandler handler, MailRecord record, String newname, String address, int port, String user, String passwd, String from)
Email_Base constructor.
Email_Base(MailRecord record, Email_Base base)
Email_Base constructor.
Email_Base(Email_Base base)
Email_Base constructor.

Method Summary

ConduitHandler
getConduitHandler()
Getter for property conduitHandler.
java.lang.String
getFrom()
Getter for property from.
java.lang.String
getHost()
Getter for property host.
java.lang.String
getName()
Getter for property name.
int
getPort()
Getter for property port.
java.util.Properties
getProps()
Getter for property props.
java.lang.String
getPwd()
Getter for property pwd (User Password).
java.lang.String
getUserid()
Getter for property userid.
protected void
postToLog(ConduitHandler handler, String message)
This method will write a message to the ConduitHandler.
void
setConduitHandler(ConduitHandler conduitHandler)
Setter for property conduitHandler.
void
setFrom(java.lang.String from)
Setter for property from.
void
setHost(java.lang.String host)
Setter for property host.
void
setMailRecord(MailRecord record)
Setter for parent class MailRecord.
void
setName(java.lang.String name)
Setter for property name.
void
setPort(String port)
Setter for property port.
void
setPort(int port)
Setter for property port.
void
setProps(java.util.Properties props)
Setter for property props.
void
setPwd(java.lang.String pwd)
Setter for property pwd (User Password).
void
setUserid(java.lang.String userid)
Setter for property userid.
String
toString()
String representation of the Email_Base class.

Methods inherited from class org.jSyncManager.API.Protocol.Util.StdApps.MailRecord

generateData, getAddressing, getBCC, getCC, getConfirmDeliveryFlag, getConfirmReadFlag, getFlags, getFrom, getMessageBody, getPriority, getReadFlag, getReplyTo, getSentTo, getSignatureFlag, getSubject, getTime, getTo, parseFields, setAddressing, setBCC, setCC, setConfirmDeliveryFlag, setConfirmReadFlag, setFlags, setFrom, setMessageBody, setPriority, setReadFlag, setRecord, setReplyTo, setSentTo, setSignatureFlag, setSubject, setTime, setTo, toString

Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord

addAttribute, checkAttribute, clearAttribute, generateData, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, parseFields, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize, toString

Constructor Details

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.
Parameters:
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.
Parameters:
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.
Parameters:
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.
Parameters:
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 ParseException
Email_Base constructor.
Parameters:
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 ParseException
Email_Base constructor.
Parameters:
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 ParseException
Email_Base constructor.
Parameters:
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.
Parameters:
base - Email_Base to copy this class from.

Method Details

getConduitHandler

public ConduitHandler getConduitHandler()
Getter for property conduitHandler.
Returns:
Value of property conduitHandler.

getFrom

public java.lang.String getFrom()
Getter for property from.
Overrides:
getFrom in interface MailRecord
Returns:
Value of property from.

getHost

public java.lang.String getHost()
Getter for property host.
Returns:
Value of property host.

getName

public java.lang.String getName()
Getter for property name.
Returns:
Value of property name.

getPort

public int getPort()
Getter for property port.
Returns:
Value of property port.

getProps

public java.util.Properties getProps()
Getter for property props.
Returns:
Value of property props.

getPwd

public java.lang.String getPwd()
Getter for property pwd (User Password).
Returns:
Value of property pwd.

getUserid

public java.lang.String getUserid()
Getter for property userid.
Returns:
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.
Parameters:
handler - the ConduitHandler instance.
message - the message to post.

setConduitHandler

public void setConduitHandler(ConduitHandler conduitHandler)
Setter for property conduitHandler.
Parameters:
conduitHandler - New value of property conduitHandler.

setFrom

public void setFrom(java.lang.String from)
Setter for property from.
Parameters:
from - New value of property from.

setHost

public void setHost(java.lang.String host)
Setter for property host.
Parameters:
host - New value of property host.

setMailRecord

public void setMailRecord(MailRecord record)
            throws ParseException
Setter for parent class MailRecord.
Parameters:
record - MailRecord record.

setName

public void setName(java.lang.String name)
Setter for property name.
Parameters:
name - New value of property name.

setPort

public void setPort(String port)
Setter for property port.
Parameters:
port - New value of property port.

setPort

public void setPort(int port)
Setter for property port.
Parameters:
port - New value of property port.

setProps

public void setProps(java.util.Properties props)
Setter for property props.
Parameters:
props - New value of property props.

setPwd

public void setPwd(java.lang.String pwd)
Setter for property pwd (User Password).
Parameters:
pwd - New value of property pwd.

setUserid

public void setUserid(java.lang.String userid)
Setter for property userid.
Parameters:
userid - New value of property userid.

toString

public String toString()
String representation of the Email_Base class.
Overrides:
toString in interface MailRecord
Returns:
String String containing the representation of the Email_Base class.