|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jsieve.utils.SieveMailAdapter
org.apache.jsieve.utils.SieveEnvelopeMailAdapter
public class SieveEnvelopeMailAdapter
Class SieveEnvelopeMailAdapter extends class SieveMailAdapter, a mock implementation of a MailAdapter, to add support for EnvelopeAccessors.
As the Envelope Test is an optional Sieve test, MailAdapter support for the interface is optional too.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.jsieve.mail.MailAdapter |
|---|
org.apache.jsieve.mail.MailAdapter.Address |
| Constructor Summary | |
|---|---|
SieveEnvelopeMailAdapter(javax.mail.internet.MimeMessage message)
Constructor for SieveEnvelopeMailAdapter. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getEnvelope(java.lang.String name)
|
java.lang.String |
getEnvelopeFrom()
Returns the from. |
java.util.List<java.lang.String> |
getEnvelopeNames()
|
protected java.util.Map<java.lang.String,java.lang.String> |
getEnvelopes()
Method getEnvelopes. |
java.lang.String |
getEnvelopeTo()
Returns the recipient. |
java.util.List<java.lang.String> |
getMatchingEnvelope(java.lang.String name)
|
void |
setEnvelopeFrom(java.lang.String from)
Sets the from. |
void |
setEnvelopeTo(java.lang.String recipient)
Sets the recipient. |
| Methods inherited from class org.apache.jsieve.utils.SieveMailAdapter |
|---|
addAction, computeActions, executeActions, getActions, getContentType, getHeader, getHeaderNames, getMatchingHeader, getMessage, getSize, isInBodyText, parseAddresses, parseAddresses, setActions, setContext, setMessage, updateActions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SieveEnvelopeMailAdapter(javax.mail.internet.MimeMessage message)
message - | Method Detail |
|---|
protected java.util.Map<java.lang.String,java.lang.String> getEnvelopes()
public java.util.List<java.lang.String> getEnvelope(java.lang.String name)
throws org.apache.jsieve.mail.SieveMailException
getEnvelope in interface org.apache.jsieve.mail.optional.EnvelopeAccessorsorg.apache.jsieve.mail.SieveMailExceptionEnvelopeAccessors.getEnvelope(String)
public java.util.List<java.lang.String> getEnvelopeNames()
throws org.apache.jsieve.mail.SieveMailException
getEnvelopeNames in interface org.apache.jsieve.mail.optional.EnvelopeAccessorsorg.apache.jsieve.mail.SieveMailExceptionEnvelopeAccessors.getEnvelopeNames()
public java.util.List<java.lang.String> getMatchingEnvelope(java.lang.String name)
throws org.apache.jsieve.mail.SieveMailException
getMatchingEnvelope in interface org.apache.jsieve.mail.optional.EnvelopeAccessorsorg.apache.jsieve.mail.SieveMailExceptionEnvelopeAccessors.getMatchingEnvelope(String)public java.lang.String getEnvelopeFrom()
public java.lang.String getEnvelopeTo()
public void setEnvelopeFrom(java.lang.String from)
from - The from to setpublic void setEnvelopeTo(java.lang.String recipient)
recipient - The recipient to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||