org.apache.james.postage.client
Class SMTPClient

java.lang.Object
  extended by org.apache.james.postage.client.SMTPClient
All Implemented Interfaces:
Sampler

public class SMTPClient
extends java.lang.Object
implements Sampler

connects as a SMTP client and handles all mail according to its configuration.
it is threadsafe and reentrant and thus can be reused over multiple parallel client session


Constructor Summary
SMTPClient(java.lang.String host, int port, UserList internalUsers, UserList externalUsers, PostageRunnerResult results, MailSender mailSender)
           
 
Method Summary
 boolean checkAvailability()
           
 void doSample()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMTPClient

public SMTPClient(java.lang.String host,
                  int port,
                  UserList internalUsers,
                  UserList externalUsers,
                  PostageRunnerResult results,
                  MailSender mailSender)
Method Detail

checkAvailability

public boolean checkAvailability()
                          throws StartupException
Throws:
StartupException

doSample

public void doSample()
              throws SamplingException
Specified by:
doSample in interface Sampler
Throws:
SamplingException


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