FileDocCategorySizeDatePackage
MatcherConfigImpl.javaAPI DocApache James 2.3.13440Fri Jan 12 12:56:22 GMT 2007org.apache.james.core

MatcherConfigImpl

public class MatcherConfigImpl extends Object implements org.apache.mailet.MatcherConfig
Implements the configuration object for a Matcher.

Fields Summary
private String
condition
A String representation of the value for the matching condition
private String
name
The name of the Matcher
private org.apache.mailet.MailetContext
context
The MailetContext associated with the Matcher configuration
Constructors Summary
Methods Summary
public java.lang.StringgetCondition()
The simple condition defined for this matcher, e.g., for SenderIs=admin@localhost, this would return admin@localhost.

return
a String containing the value of the initialization parameter

        return condition;
    
public org.apache.mailet.MailetContextgetMailetContext()
Returns a reference to the MailetContext in which the matcher is executing

return
a MailetContext object, used by the matcher to interact with its mailet container

        return context;
    
public java.lang.StringgetMatcherName()
Returns the name of this matcher instance. The name may be provided via server administration, assigned in the application deployment descriptor, or for an unregistered (and thus unnamed) matcher instance it will be the matcher's class name.

return
the name of the matcher instance

        return name;
    
public voidsetCondition(java.lang.String newCondition)
Set the simple condition defined for this matcher configuration.

        condition = newCondition;
    
public voidsetMailetContext(org.apache.mailet.MailetContext newContext)
Sets a reference to the MailetContext in which the matcher is executing

param
newContext a MailetContext object, used by the matcher to interact with its mailet container

        context = newContext;
    
public voidsetMatcherName(java.lang.String newName)
Sets the name of this matcher instance.

param
newName the name of the matcher instance

        name = newName;