org.apache.axis2.transport.mail
Class SimpleMailListener

java.lang.Object
  extended byorg.apache.axis2.transport.mail.SimpleMailListener
All Implemented Interfaces:
Runnable, TransportListener

public class SimpleMailListener
extends Object
implements Runnable, TransportListener

This is a simple implementation of an SMTP/POP3 server for processing SOAP requests via Apache's xml-axis2. This is not intended for production use. Its intended uses are for demos, debugging, and performance profiling.


Field Summary
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
SimpleMailListener()
           
SimpleMailListener(String host, String port, String userid, String password, String dir)
           
 
Method Summary
 boolean getDoThreads()
           
 EndpointReference getEPRForService(String serviceName, String ip)
           
 void init(ConfigurationContext configurationContext, TransportInDescription transportIn)
           
static void main(String[] args)
          Server process.
 void run()
          Accept requests from a given TCP port and send them through the Axis engine for processing.
 void setDoThreads(boolean value)
           
 void start()
          Start this server as a NON-daemon.
 void start(boolean daemon)
          Start this server.
 void stop()
          Stop this server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMailListener

public SimpleMailListener()

SimpleMailListener

public SimpleMailListener(String host,
                          String port,
                          String userid,
                          String password,
                          String dir)
                   throws AxisFault
Method Detail

init

public void init(ConfigurationContext configurationContext,
                 TransportInDescription transportIn)
          throws AxisFault
Specified by:
init in interface TransportListener
Throws:
AxisFault

main

public static void main(String[] args)
                 throws AxisFault
Server process.

Throws:
AxisFault

run

public void run()
Accept requests from a given TCP port and send them through the Axis engine for processing.

Specified by:
run in interface Runnable

start

public void start()
           throws AxisFault
Start this server as a NON-daemon.

Specified by:
start in interface TransportListener
Throws:
AxisFault

start

public void start(boolean daemon)
           throws AxisFault
Start this server.

Spawns a worker thread to listen for HTTP requests.

Parameters:
daemon - a boolean indicating if the thread should be a daemon.
Throws:
AxisFault

stop

public void stop()
Stop this server.

This will interrupt any pending accept().

Specified by:
stop in interface TransportListener

getDoThreads

public boolean getDoThreads()

getEPRForService

public EndpointReference getEPRForService(String serviceName,
                                          String ip)
                                   throws AxisFault
Specified by:
getEPRForService in interface TransportListener
Throws:
AxisFault

setDoThreads

public void setDoThreads(boolean value)