org.apache.axis2.transport.mail
Class SimpleMailListener

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

public class SimpleMailListener
extends java.lang.Object
implements java.lang.Runnable, TransportListener

This is the implementation for Mail Listener in Axis2. It has the full capability of connecting to a POP3 or IMPA server with SSL or regualar connection. This listener intend to use as a server in client side as well with the involcation is Async with addressing.


Field Summary
 
Fields inherited from interface org.apache.axis2.transport.TransportListener
HOST_ADDRESS, PARAM_PORT
 
Constructor Summary
SimpleMailListener()
           
 
Method Summary
 void destroy()
           
 EndpointReference getEPRForService(java.lang.String serviceName, java.lang.String ip)
           
 EndpointReference[] getEPRsForService(java.lang.String serviceName, java.lang.String ip)
           
 SessionContext getSessionContext(MessageContext messageContext)
          To get the sessionContext transport dependent manner.
 void init(ConfigurationContext configurationContext, TransportInDescription transportIn)
           
 void initFromRuntime(java.util.Properties properties, MessageContext msgContext)
           
static void main(java.lang.String[] args)
          Server process.
 void run()
          Accept requests from a given TCP port and send them through the Axis engine for processing.
 void start()
          Start this listener
 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()
Method Detail

init

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

initFromRuntime

public void initFromRuntime(java.util.Properties properties,
                            MessageContext msgContext)
                     throws AxisFault
Throws:
AxisFault

main

public static void main(java.lang.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 java.lang.Runnable

start

public void start()
           throws AxisFault
Start this listener

Specified by:
start in interface TransportListener
Throws:
AxisFault

stop

public void stop()
Stop this server.

Specified by:
stop in interface TransportListener

getEPRForService

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

getEPRsForService

public EndpointReference[] getEPRsForService(java.lang.String serviceName,
                                             java.lang.String ip)
                                      throws AxisFault
Specified by:
getEPRsForService in interface TransportListener
Throws:
AxisFault

getSessionContext

public SessionContext getSessionContext(MessageContext messageContext)
Description copied from interface: TransportListener
To get the sessionContext transport dependent manner. So that transport listener can return its own implementation of session managment

Specified by:
getSessionContext in interface TransportListener
Parameters:
messageContext - : MessageContext which has all the relavent data
Returns:
SessionContext

destroy

public void destroy()
Specified by:
destroy in interface TransportListener


Copyright ? 2007 Apache Web Services Project. All Rights Reserved.