org.mailster.smtp.api.handler.Delivery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailster-smtp Show documentation
Show all versions of mailster-smtp Show documentation
A NIO SMTP server API written in Java
package org.mailster.smtp.api.handler;
import org.mailster.smtp.api.MessageListener;
/**
* Tracks which listeners need delivery.
*
* @author De Oliveira Edouard <[email protected]>
*/
public class Delivery {
private MessageListener listener;
private String recipient;
public Delivery(MessageListener listener, String recipient) {
this.listener = listener;
this.recipient = recipient;
}
public MessageListener getListener() {
return this.listener;
}
public String getRecipient() {
return this.recipient;
}
}