FileDocCategorySizeDatePackage
MailActivationSpec.javaAPI DocJBoss 4.2.14487Fri Jul 13 21:01:14 BST 2007org.jboss.resource.adapter.mail.inflow

MailActivationSpec

public class MailActivationSpec extends Object implements Serializable, javax.resource.spi.ActivationSpec
The encapsulation of the mail folder endpoint specification
author
Scott.Stark@jboss.org
version
$Revision: 57189 $

Fields Summary
private static final long
serialVersionUID
private transient javax.resource.spi.ResourceAdapter
ra
The resource adapter
private String
mailServer
The mail server hostname/address
private String
storeProtocol
The mail store protocol
private String
mailFolder
The mail folder name
private String
messageSelector
The message selector
private String
userName
The mail store user
private String
password
The mail store password
private long
pollingInterval
The new messages check delay in MS
private int
maxMessages
The maximum number of messages
Constructors Summary
Methods Summary
public java.lang.StringgetMailFolder()

      return mailFolder;
   
public java.lang.StringgetMailServer()


     
   
      return mailServer;
   
public intgetMaxMessages()

      return maxMessages;
   
public java.lang.StringgetMessageSelector()

      return messageSelector;
   
public java.lang.StringgetPassword()

      return password;
   
public longgetPollingInterval()

      return pollingInterval;
   
public javax.resource.spi.ResourceAdaptergetResourceAdapter()

      return ra;
   
public java.lang.StringgetStoreProtocol()

      return storeProtocol;
   
public java.lang.StringgetUserName()

      return userName;
   
public voidsetMailFolder(java.lang.String mailFolder)

      this.mailFolder = mailFolder;
   
public voidsetMailServer(java.lang.String mailServer)

      this.mailServer = mailServer;
   
public voidsetMaxMessages(int maxMessages)

      this.maxMessages = maxMessages;
   
public voidsetMessageSelector(java.lang.String messageSelector)

      this.messageSelector = messageSelector;
   
public voidsetPassword(java.lang.String password)

      this.password = password;
   
public voidsetPollingInterval(long pollingInterval)

      this.pollingInterval = pollingInterval;
   
public voidsetResourceAdapter(javax.resource.spi.ResourceAdapter ra)

      this.ra = ra;
   
public voidsetStoreProtocol(java.lang.String storeProtocol)

      this.storeProtocol = storeProtocol;
   
public voidsetUserName(java.lang.String userName)

      this.userName = userName;
   
public java.lang.StringtoString()

      StringBuffer tmp = new StringBuffer("MailActivationSpec(");
      tmp.append("mailServer=");
      tmp.append(mailServer);
      tmp.append(", storeProtocol=");
      tmp.append(storeProtocol);
      tmp.append(", mailFolder=");
      tmp.append(mailFolder);
      tmp.append(", pollingInterval=");
      tmp.append(pollingInterval);
      tmp.append(", messageSelector=");
      tmp.append(messageSelector);
      tmp.append(", userName=");
      tmp.append(userName);
      tmp.append(", maxMessages=");
      tmp.append(maxMessages);
      tmp.append(")");
      return tmp.toString();
   
public voidvalidate()