/**
* Copyright (C) 2011-2012 trivago GmbH <mario.mueller@trivago.com>, <christian.krause@trivago.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.trivago.mail.pigeon.json;
import java.util.Date;
/**
* @author Mario Mueller mario.mueller@trivago.com
*/
public class MailTransport
{
private String from;
private String to;
private String replyTo;
private String subject;
private String html;
private String text;
private String mId;
private String uId;
private Date sendDate;
private boolean enforceSending = false;
private boolean abortSending = false;
public void enforceSending()
{
enforceSending = true;
}
public void abortSending()
{
abortSending = true;
}
public boolean shouldAbortSending()
{
return abortSending;
}
public boolean shouldEnforceSending()
{
return enforceSending;
}
public String getFrom()
{
return from;
}
public void setFrom(String from)
{
this.from = from;
}
public String getTo()
{
return to;
}
public void setTo(String to)
{
this.to = to;
}
public String getReplyTo()
{
return replyTo;
}
public void setReplyTo(String replyTo)
{
this.replyTo = replyTo;
}
public String getSubject()
{
return subject;
}
public void setSubject(String subject)
{
this.subject = subject;
}
public String getHtml()
{
return html;
}
public void setHtml(String html)
{
this.html = html;
}
public String getText()
{
return text;
}
public void setText(String text)
{
this.text = text;
}
public String getmId()
{
return mId;
}
public void setmId(String mId)
{
this.mId = mId;
}
public String getuId()
{
return uId;
}
public void setuId(String uId)
{
this.uId = uId;
}
public Date getSendDate()
{
return sendDate;
}
public void setSendDate(Date sendDate)
{
this.sendDate = sendDate;
}
}