FileDocCategorySizeDatePackage
MockMatcherConfig.javaAPI DocApache James 2.3.12097Fri Jan 12 12:56:36 GMT 2007org.apache.james.test.mock.mailet

MockMatcherConfig

public class MockMatcherConfig extends Object implements org.apache.mailet.MatcherConfig
MatcherConfig

Fields Summary
private String
matcherName
private org.apache.mailet.MailetContext
mc
Constructors Summary
public MockMatcherConfig(String matcherName, org.apache.mailet.MailetContext mc)

        super();
        this.matcherName = matcherName;
        this.mc = mc;
    
Methods Summary
public java.lang.StringgetCondition()

        if (matcherName.indexOf("=") >= 0) {
            return matcherName.substring(getMatcherName().length() + 1);
        } else {
            return null;
        }
    
public org.apache.mailet.MailetContextgetMailetContext()

        return mc;
    
public java.lang.StringgetMatcherName()

        if (matcherName.indexOf("=") >= 0) {
            return matcherName.split("=")[0];
        } else {
            return matcherName;
        }