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

MockMailContext

public class MockMailContext extends Object implements org.apache.mailet.MailetContext
Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. *

Fields Summary
HashMap
attributes
Constructors Summary
Methods Summary
public voidbounce(org.apache.mailet.Mail mail, java.lang.String message)


            
        // trivial implementation
    
public voidbounce(org.apache.mailet.Mail mail, java.lang.String message, org.apache.mailet.MailAddress bouncer)

        // trivial implementation
    
public java.lang.ObjectgetAttribute(java.lang.String name)

        return attributes.get(name);
    
public java.util.IteratorgetAttributeNames()

        return attributes.keySet().iterator();
    
public java.util.CollectiongetMailServers(java.lang.String host)

        return null;  // trivial implementation
    
public intgetMajorVersion()

        return 0;  // trivial implementation
    
public intgetMinorVersion()

        return 0;  // trivial implementation
    
public org.apache.mailet.MailAddressgetPostmaster()

        return null;  // trivial implementation
    
public java.util.IteratorgetSMTPHostAddresses(java.lang.String domainName)

        return null;  // trivial implementation
    
public java.lang.StringgetServerInfo()

        return "Mock Server";
    
public booleanisLocalServer(java.lang.String serverName)

        return false;  // trivial implementation
    
public booleanisLocalUser(java.lang.String userAccount)

        return false;  // trivial implementation
    
public voidlog(java.lang.String message)

        System.out.println(message);
    
public voidlog(java.lang.String message, java.lang.Throwable t)

        System.out.println(message);
        t.printStackTrace(System.out);
    
public voidremoveAttribute(java.lang.String name)

        // trivial implementation
    
public voidsendMail(javax.mail.internet.MimeMessage msg)

        // trivial implementation
    
public voidsendMail(org.apache.mailet.MailAddress sender, java.util.Collection recipients, javax.mail.internet.MimeMessage msg)

        // trivial implementation
    
public voidsendMail(org.apache.mailet.MailAddress sender, java.util.Collection recipients, javax.mail.internet.MimeMessage msg, java.lang.String state)

        // trivial implementation
    
public voidsendMail(org.apache.mailet.Mail mail)

        // trivial implementation
    
public voidsetAttribute(java.lang.String name, java.lang.Object object)

        attributes.put(name,object);
    
public voidstoreMail(org.apache.mailet.MailAddress sender, org.apache.mailet.MailAddress recipient, javax.mail.internet.MimeMessage msg)

        // trivial implementation