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

MockMailetConfig

public class MockMailetConfig extends Properties implements org.apache.mailet.MailetConfig
MailetConfig over Properties

Fields Summary
private String
mailetName
private org.apache.mailet.MailetContext
mc
Constructors Summary
public MockMailetConfig(String mailetName, org.apache.mailet.MailetContext mc)

        super();
        this.mailetName = mailetName;
        this.mc = mc;
    
public MockMailetConfig(String mailetName, org.apache.mailet.MailetContext mc, Properties arg0)

        super(arg0);
        this.mailetName = mailetName;
        this.mc = mc;
    
Methods Summary
public java.lang.StringgetInitParameter(java.lang.String name)

        return getProperty(name);
    
public java.util.IteratorgetInitParameterNames()

        return keySet().iterator();
    
public org.apache.mailet.MailetContextgetMailetContext()

        return mc;
    
public java.lang.StringgetMailetName()

        return mailetName;
    
public java.lang.ObjectsetProperty(java.lang.String key, java.lang.String value)

        String oldValue = getProperty(key);
        String newValue = value;

        if (oldValue != null) {
            newValue = oldValue + "," + value;
        }
        return super.setProperty(key, newValue);