Class SPF1Record

java.lang.Object
org.apache.james.jspf.core.SPF1Record

public class SPF1Record extends Object
The Class represent the SPF1 Record and provide methods to get all directives and modifiers.
  • Constructor Details

    • SPF1Record

      public SPF1Record()
    • SPF1Record

      public SPF1Record(String record)
  • Method Details

    • getDirectives

      public List<Directive> getDirectives()
      Return the directives as Collection
      Returns:
      directives Collection of all qualifier+mechanism which should be used
    • getModifiers

      public List<Modifier> getModifiers()
      Return the modifiers as Collection
      Returns:
      modifiers Collection of all modifiers which should be used
    • getRecord

      public String getRecord()
      Returns:
      the record in its string source format
    • iterator

      public Iterator<SPFChecker> iterator()
      Return a single iterator over Directives and Modifiers
      Returns:
      a chained iterator of the terms