org.apache.jsieve.tests.optional
Class Envelope

java.lang.Object
  extended by org.apache.jsieve.tests.AbstractTest
      extended by org.apache.jsieve.tests.AbstractCompatatorTest
          extended by org.apache.jsieve.tests.optional.Envelope
All Implemented Interfaces:
ExecutableTest

public class Envelope
extends AbstractCompatatorTest

Class Envelope implements the optional Envelope Test as defined in RFC 3028, section 5.4.


Constructor Summary
Envelope()
          Constructor for EnvelopeAccessors.
 
Method Summary
protected  java.util.List<java.lang.String> getMatchingValues(MailAdapter mail, java.lang.String valueName)
           
protected  boolean match(MailAdapter mail, java.lang.String addressPart, java.lang.String comparator, java.lang.String matchType, java.lang.String headerName, java.lang.String key, SieveContext context)
          Method match.
protected  boolean match(java.lang.String addressPart, java.lang.String comparator, java.lang.String matchType, java.lang.String headerValue, java.lang.String key, SieveContext context)
          Method match.
 
Methods inherited from class org.apache.jsieve.tests.AbstractCompatatorTest
executeBasic, match, match, validateArguments
 
Methods inherited from class org.apache.jsieve.tests.AbstractTest
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Envelope

public Envelope()
Constructor for EnvelopeAccessors.

Method Detail

getMatchingValues

protected java.util.List<java.lang.String> getMatchingValues(MailAdapter mail,
                                                             java.lang.String valueName)
                                                      throws SieveMailException
Throws:
SieveMailException

match

protected boolean match(java.lang.String addressPart,
                        java.lang.String comparator,
                        java.lang.String matchType,
                        java.lang.String headerValue,
                        java.lang.String key,
                        SieveContext context)
                 throws SieveException
Method match.

Parameters:
addressPart -
comparator -
matchType -
headerValue -
key -
context - not null
Returns:
boolean
Throws:
SieveMailException
SieveException

match

protected boolean match(MailAdapter mail,
                        java.lang.String addressPart,
                        java.lang.String comparator,
                        java.lang.String matchType,
                        java.lang.String headerName,
                        java.lang.String key,
                        SieveContext context)
                 throws SieveException
Description copied from class: AbstractCompatatorTest
Method match.

Specified by:
match in class AbstractCompatatorTest
context - not null
Returns:
boolean
Throws:
SieveMailException
SieveException


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.