FileDocCategorySizeDatePackage
HostIs.javaAPI DocApache James 2.3.11955Fri Jan 12 12:56:32 GMT 2007org.apache.james.transport.matchers

HostIs

public class HostIs extends org.apache.mailet.GenericRecipientMatcher
version
1.0.0, 24/04/1999

Fields Summary
private Collection
hosts
Constructors Summary
Methods Summary
public voidinit()

        StringTokenizer st = new StringTokenizer(getCondition(), ", ", false);
        hosts = new Vector();
        while (st.hasMoreTokens()) {
            hosts.add(st.nextToken().toLowerCase(Locale.US));
        }
    
public booleanmatchRecipient(org.apache.mailet.MailAddress recipient)

        return hosts.contains(recipient.getHost().toLowerCase(Locale.US));