org.apache.james.postage.client
Class SMTPClient
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMTPClient
public SMTPClient(java.lang.String host,
int port,
UserList internalUsers,
UserList externalUsers,
PostageRunnerResult results,
MailSender mailSender)
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.