|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jsieve.tests.AbstractTest
org.apache.jsieve.tests.Header
Class Header implements the Header Test as defined in RFC 3028, section 5.7.
Field Summary |
Fields inherited from interface org.apache.jsieve.tests.ComparatorTags |
COMPARATOR_TAG |
Fields inherited from interface org.apache.jsieve.comparators.MatchTypeTags |
CONTAINS_TAG, IS_TAG, MATCHES_TAG |
Fields inherited from interface org.apache.jsieve.comparators.ComparatorNames |
ASCII_CASEMAP_COMPARATOR, OCTET_COMPARATOR |
Constructor Summary | |
Header()
Constructor for Header. |
Method Summary | |
protected boolean |
executeBasic(MailAdapter mail,
Arguments arguments,
SieveContext context)
From RFC 3028, Section 5.7... |
protected boolean |
match(MailAdapter mail,
java.lang.String comparator,
java.lang.String matchType,
java.util.List headerNames,
java.util.List keys)
Method match. |
protected boolean |
match(java.lang.String comparator,
java.lang.String matchType,
java.util.List headerValues,
java.util.List keys)
Method match. |
protected boolean |
match(java.lang.String comparator,
java.lang.String matchType,
java.lang.String headerValue,
java.util.List keys)
Method match. |
protected void |
validateArguments(Arguments arguments,
SieveContext context)
Framework method validateArguments is invoked before a Sieve Test is executed to validate its arguments. |
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 |
public Header()
Method Detail |
protected boolean executeBasic(MailAdapter mail, Arguments arguments, SieveContext context) throws SieveException
From RFC 3028, Section 5.7...
Syntax: header [COMPARATOR] [MATCH-TYPE]
<header-names: string-list> <key-list: string-list>
Note that the spec. then goes on to give an example where the order of the optional parts is different, so I guess that the order is optional too!
executeBasic
in class AbstractTest
mail
- arguments
- context
- SieveContext
giving contextual information,
not null
SieveException
AbstractTest.executeBasic(MailAdapter,
Arguments, SieveContext)
protected boolean match(MailAdapter mail, java.lang.String comparator, java.lang.String matchType, java.util.List headerNames, java.util.List keys) throws SieveException
mail
- comparator
- matchType
- headerNames
- keys
-
SieveException
protected boolean match(java.lang.String comparator, java.lang.String matchType, java.util.List headerValues, java.util.List keys) throws SieveException
comparator
- matchType
- headerValues
- keys
-
SieveException
protected boolean match(java.lang.String comparator, java.lang.String matchType, java.lang.String headerValue, java.util.List keys) throws SieveException
comparator
- matchType
- headerValue
- keys
-
SieveException
protected void validateArguments(Arguments arguments, SieveContext context) throws SieveException
AbstractTest
validateArguments
in class AbstractTest
arguments
- context
- SieveContext
giving comntextual
information, not null
SieveException
AbstractTest.validateArguments(Arguments,
SieveContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |