org.apache.james.core
Class MatcherConfigImpl

java.lang.Object
  extended by org.apache.james.core.MatcherConfigImpl
All Implemented Interfaces:
MatcherConfig

public class MatcherConfigImpl
extends java.lang.Object
implements MatcherConfig

Implements the configuration object for a Matcher.


Constructor Summary
MatcherConfigImpl()
           
 
Method Summary
 java.lang.String getCondition()
          The simple condition defined for this matcher, e.g., for SenderIs=admin@localhost, this would return admin@localhost.
 MailetContext getMailetContext()
          Returns a reference to the MailetContext in which the matcher is executing
 java.lang.String getMatcherName()
          Returns the name of this matcher instance.
 void setCondition(java.lang.String newCondition)
          Set the simple condition defined for this matcher configuration.
 void setMailetContext(MailetContext newContext)
          Sets a reference to the MailetContext in which the matcher is executing
 void setMatcherName(java.lang.String newName)
          Sets the name of this matcher instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatcherConfigImpl

public MatcherConfigImpl()
Method Detail

getCondition

public java.lang.String getCondition()
The simple condition defined for this matcher, e.g., for SenderIs=admin@localhost, this would return admin@localhost.

Specified by:
getCondition in interface MatcherConfig
Returns:
a String containing the value of the initialization parameter

setCondition

public void setCondition(java.lang.String newCondition)
Set the simple condition defined for this matcher configuration.


getMatcherName

public java.lang.String getMatcherName()
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.

Specified by:
getMatcherName in interface MatcherConfig
Returns:
the name of the matcher instance

setMatcherName

public void setMatcherName(java.lang.String newName)
Sets the name of this matcher instance.

Parameters:
newName - the name of the matcher instance

getMailetContext

public MailetContext getMailetContext()
Returns a reference to the MailetContext in which the matcher is executing

Specified by:
getMailetContext in interface MatcherConfig
Returns:
a MailetContext object, used by the matcher to interact with its mailet container

setMailetContext

public void setMailetContext(MailetContext newContext)
Sets a reference to the MailetContext in which the matcher is executing

Parameters:
newContext - a MailetContext object, used by the matcher to interact with its mailet container


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.