D:\DEV\PROJECTS\Harbor_Mailer_Lib\src\kewlstuff\harbor\mailer\MailPackage.java
/*
 * MailPackage.java
 */

package kewlstuff.harbor.mailer;
import kewlstuff.harbor.mailer.interfaces.I_MailPackage;
import java.io.Serializable;

/**
 *
 * @author Johnny Kewl
 * Just hold mail packet to be sent and stores error message per mail package
 * Oh look its a bean, the kind of thing an IOC container runs ;)
 * In Harbor, like in servlets, its not the main focus, beans normally just
 * transport data. In a servlet they used to move servlet data to display data, and
 * in Harbor they used in very much the same way.
 * In general you will make beans serializable... the reason is that when the
 * server returns a bean, to the UI, that UI could be on the other side of the world...
 */
public class MailPackage implements Serializable, I_MailPackage {
    public String errorMessage = null;    
    public String from = null;
    public String to = null;   
    public String subject = null;
    public String sMessage = null;
    public String sAttachment = null;
    public String sFilename = null;     
    
    /** Creates a new instance of MailPackage */
    public MailPackage() {
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public String getFrom() {
        return from;
    }

    public String getTo() {
        return to;
    }

    public String getSubject() {
        return subject;
    }

    public String getMessage() {
        return sMessage;
    }

    public String getAttachment() {
        return sAttachment;
    }

    public String getFilename() {
        return sFilename;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public void setMessage(String sMessage) {
        this.sMessage = sMessage;
    }

    public void setAttachment(String sAttachment) {
        this.sAttachment = sAttachment;
    }

    public void getFilename(String sFilename) {
        this.sFilename = sFilename;
    }
}


Models, Models, Models! Free Modeling Portfolio! ModelCoast. Photographers! Free Photographic Portfolios. Imagegods. Visit The Best Free Image Hosting.