com.hs.mail.sieve
Class SieveMailAdapter

java.lang.Object
  extended by com.hs.mail.sieve.SieveMailAdapter
All Implemented Interfaces:
org.apache.jsieve.mail.MailAdapter

public class SieveMailAdapter
extends Object
implements org.apache.jsieve.mail.MailAdapter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.jsieve.mail.MailAdapter
org.apache.jsieve.mail.MailAdapter.Address
 
Constructor Summary
SieveMailAdapter(MailetContext aMailetContext, String soleRecipient, long soleRecipientID)
          Constructor for SieveMailAdapter.
 
Method Summary
 void addAction(org.apache.jsieve.mail.Action action)
          Adds an Action.
protected  List computeActions()
          Returns a new List of actions.
 void executeActions()
           
 List getActions()
          Returns the List of actions.
 ListIterator getActionsIterator()
           
 Object getContent()
           
 String getContentType()
           
 List getHeader(String name)
           
 List getHeaderNames()
           
 MailetContext getMailetContext()
          Returns the mailetContext.
 List getMatchingHeader(String name)
           
 SmtpMessage getMessage()
           
 int getSize()
           
 String getSoleRecipient()
           
 long getSoleRecipientID()
           
 org.apache.jsieve.mail.MailAdapter.Address[] parseAddresses(String headerName)
           
protected  void setActions(List actions)
          Sets the actions.
protected  void setMailetContext(MailetContext mailetContext)
          Sets the mailetContext.
 void setMessage(SmtpMessage aMessage)
           
 void setSoleRecipient(String soleRecipient)
           
 void setSoleRecipientID(long soleRecipientID)
           
protected  void updateActions()
          Updates the actions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SieveMailAdapter

public SieveMailAdapter(MailetContext aMailetContext,
                        String soleRecipient,
                        long soleRecipientID)
Constructor for SieveMailAdapter.

Method Detail

getMessage

public SmtpMessage getMessage()
Returns:
Returns the fieldMessage.

setMessage

public void setMessage(SmtpMessage aMessage)
Parameters:
fieldMessage - The fieldMessage to set.

getSoleRecipient

public String getSoleRecipient()
Returns:
Returns the soleRecipient.

setSoleRecipient

public void setSoleRecipient(String soleRecipient)
Parameters:
soleRecipient - The soleRecipient to set.

getSoleRecipientID

public long getSoleRecipientID()
Returns:
Returns the ID of soleRecipient.

setSoleRecipientID

public void setSoleRecipientID(long soleRecipientID)
Parameters:
soleRecipientID - The ID of soleRecipient to set.

getActions

public List getActions()
Returns the List of actions.

Specified by:
getActions in interface org.apache.jsieve.mail.MailAdapter
Returns:
List

computeActions

protected List computeActions()
Returns a new List of actions.

Returns:
List

addAction

public void addAction(org.apache.jsieve.mail.Action action)
Adds an Action.

Specified by:
addAction in interface org.apache.jsieve.mail.MailAdapter
Parameters:
action - The action to set

executeActions

public void executeActions()
                    throws org.apache.jsieve.exception.SieveException
Specified by:
executeActions in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.exception.SieveException
See Also:
MailAdapter.executeActions()

setActions

protected void setActions(List actions)
Sets the actions.

Parameters:
actions - The actions to set

updateActions

protected void updateActions()
Updates the actions.


getActionsIterator

public ListIterator getActionsIterator()
Specified by:
getActionsIterator in interface org.apache.jsieve.mail.MailAdapter
See Also:
MailAdapter.getActionsIterator()

getContent

public Object getContent()
                  throws org.apache.jsieve.mail.SieveMailException
Specified by:
getContent in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.mail.SieveMailException

getContentType

public String getContentType()
                      throws org.apache.jsieve.mail.SieveMailException
Specified by:
getContentType in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.mail.SieveMailException

getHeader

public List getHeader(String name)
               throws org.apache.jsieve.mail.SieveMailException
Specified by:
getHeader in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.mail.SieveMailException
See Also:
MailAdapter.getHeader(String)

getHeaderNames

public List getHeaderNames()
                    throws org.apache.jsieve.mail.SieveMailException
Specified by:
getHeaderNames in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.mail.SieveMailException
See Also:
MailAdapter.getHeaderNames()

getMatchingHeader

public List getMatchingHeader(String name)
                       throws org.apache.jsieve.mail.SieveMailException
Specified by:
getMatchingHeader in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.mail.SieveMailException
See Also:
MailAdapter.getMatchingHeader(String)

getSize

public int getSize()
            throws org.apache.jsieve.mail.SieveMailException
Specified by:
getSize in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.mail.SieveMailException
See Also:
MailAdapter.getSize()

parseAddresses

public org.apache.jsieve.mail.MailAdapter.Address[] parseAddresses(String headerName)
                                                            throws org.apache.jsieve.mail.SieveMailException,
                                                                   org.apache.jsieve.exception.InternetAddressException
Specified by:
parseAddresses in interface org.apache.jsieve.mail.MailAdapter
Throws:
org.apache.jsieve.mail.SieveMailException
org.apache.jsieve.exception.InternetAddressException

getMailetContext

public MailetContext getMailetContext()
Returns the mailetContext.

Returns:
MailetContext

setMailetContext

protected void setMailetContext(MailetContext mailetContext)
Sets the mailetContext.

Parameters:
mailetContext - The mailetContext to set


Copyright © 2011. All Rights Reserved.