org.jboss.jca.adapters.mail.inflow
Class MailActivationSpec

java.lang.Object
  extended by org.jboss.jca.adapters.mail.inflow.MailActivationSpec
All Implemented Interfaces:
Serializable, javax.resource.spi.ActivationSpec, javax.resource.spi.ResourceAdapterAssociation

public class MailActivationSpec
extends Object
implements javax.resource.spi.ActivationSpec, Serializable

The encapsulation of the mail folder endpoint specification

Author:
Scott Stark, Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
MailActivationSpec()
          Constructor
 
Method Summary
 String getMailFolder()
          Get the mail folder
 String getMailServer()
          Get the mail server
 Integer getMaxMessages()
          Get the max messages
 String getMessageSelector()
          Get the message selector
 String getPassword()
          Get the password
 Long getPollingInterval()
          Get the polling interval
 Integer getPort()
          Get the port
 javax.resource.spi.ResourceAdapter getResourceAdapter()
          Get the resource adapter
 String getStoreProtocol()
          Get the store protocol
 String getUserName()
          Get the user name
 Boolean isDebug()
          Get the max messages
 Boolean isFlush()
          Get the flush
 Boolean isStarttls()
          Get the starttls
 void setDebug(Boolean debug)
          Set the debug
 void setFlush(Boolean flush)
          Set the flush
 void setMailFolder(String mailFolder)
          Set the mail folder
 void setMailServer(String mailServer)
          Set the mail server
 void setMaxMessages(Integer maxMessages)
          Set the max messages
 void setMessageSelector(String messageSelector)
          Set the message selector
 void setPassword(String password)
          Set the password
 void setPollingInterval(Long pollingInterval)
          Set the polling interval
 void setPort(Integer port)
          Set the port
 void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
          Set the resource adapter
 void setStarttls(Boolean starttls)
          Set the starttls
 void setStoreProtocol(String storeProtocol)
          Set the store protocol
 void setUserName(String userName)
          Set the user name
 String toString()
          String representation
 void validate()
          Validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailActivationSpec

public MailActivationSpec()
Constructor

Method Detail

getMailServer

public String getMailServer()
Get the mail server

Returns:
The value

setMailServer

public void setMailServer(String mailServer)
Set the mail server

Parameters:
mailServer - The value

getStoreProtocol

public String getStoreProtocol()
Get the store protocol

Returns:
The value

setStoreProtocol

public void setStoreProtocol(String storeProtocol)
Set the store protocol

Parameters:
storeProtocol - The value

getMailFolder

public String getMailFolder()
Get the mail folder

Returns:
The value

setMailFolder

public void setMailFolder(String mailFolder)
Set the mail folder

Parameters:
mailFolder - The value

getMessageSelector

public String getMessageSelector()
Get the message selector

Returns:
The value

setMessageSelector

public void setMessageSelector(String messageSelector)
Set the message selector

Parameters:
messageSelector - The value

getUserName

public String getUserName()
Get the user name

Returns:
The value

setUserName

public void setUserName(String userName)
Set the user name

Parameters:
userName - The value

getPassword

public String getPassword()
Get the password

Returns:
The value

setPassword

public void setPassword(String password)
Set the password

Parameters:
password - The value

getPollingInterval

public Long getPollingInterval()
Get the polling interval

Returns:
The value

setPollingInterval

public void setPollingInterval(Long pollingInterval)
Set the polling interval

Parameters:
pollingInterval - The value

getMaxMessages

public Integer getMaxMessages()
Get the max messages

Returns:
The value

setMaxMessages

public void setMaxMessages(Integer maxMessages)
Set the max messages

Parameters:
maxMessages - The value

isDebug

public Boolean isDebug()
Get the max messages

Returns:
The value

setDebug

public void setDebug(Boolean debug)
Set the debug

Parameters:
debug - The value

getPort

public Integer getPort()
Get the port

Returns:
The value

setPort

public void setPort(Integer port)
Set the port

Parameters:
port - The value

isStarttls

public Boolean isStarttls()
Get the starttls

Returns:
The value

setStarttls

public void setStarttls(Boolean starttls)
Set the starttls

Parameters:
starttls - The value

isFlush

public Boolean isFlush()
Get the flush

Returns:
The value

setFlush

public void setFlush(Boolean flush)
Set the flush

Parameters:
flush - The value

getResourceAdapter

public javax.resource.spi.ResourceAdapter getResourceAdapter()
Get the resource adapter

Specified by:
getResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Returns:
The value

setResourceAdapter

public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra)
                        throws javax.resource.ResourceException
Set the resource adapter

Specified by:
setResourceAdapter in interface javax.resource.spi.ResourceAdapterAssociation
Parameters:
ra - The value
Throws:
javax.resource.ResourceException - Thrown if an error occurs

validate

public void validate()
              throws javax.resource.spi.InvalidPropertyException
Validate

Specified by:
validate in interface javax.resource.spi.ActivationSpec
Throws:
javax.resource.spi.InvalidPropertyException - Thrown if an error occurs

toString

public String toString()
String representation

Overrides:
toString in class Object
Returns:
The value


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)