org.mule.providers.email
Class Pop3MessageDispatcher

java.lang.Object
  extended byorg.mule.providers.AbstractMessageDispatcher
      extended byorg.mule.providers.email.Pop3MessageDispatcher
All Implemented Interfaces:
Disposable, java.beans.ExceptionListener, UMOMessageDispatcher

public class Pop3MessageDispatcher
extends AbstractMessageDispatcher

Pop3MessageDispatcher For Pop3 connections the dispatcher can only be used to receive message (as opposed to listening for them). Trying to send or dispatch will throw an UnsupportedOperationException.

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Field Summary
 
Fields inherited from class org.mule.providers.AbstractMessageDispatcher
disposed, disposeOnCompletion, doThreading, logger, threadPool
 
Fields inherited from interface org.mule.umo.provider.UMOMessageDispatcher
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
 
Constructor Summary
Pop3MessageDispatcher(Pop3Connector connector)
           
 
Method Summary
 void doDispatch(UMOEvent event)
           
 void doDispose()
           
 UMOMessage doSend(UMOEvent event)
           
 UMOConnector getConnector()
           
 java.lang.Object getDelegateSession()
           
protected  void initialise(java.lang.String endpoint)
           
 UMOMessage receive(UMOEndpointURI endpointUri, long timeout)
          Endpoint can be in the form of pop3://username:password@pop3.muleumo.org
 
Methods inherited from class org.mule.providers.AbstractMessageDispatcher
dispatch, dispose, exceptionThrown, isDisposed, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pop3MessageDispatcher

public Pop3MessageDispatcher(Pop3Connector connector)
Method Detail

initialise

protected void initialise(java.lang.String endpoint)
                   throws MessagingException
Throws:
MessagingException

doDispatch

public void doDispatch(UMOEvent event)
                throws java.lang.Exception
Specified by:
doDispatch in class AbstractMessageDispatcher
Parameters:
event -
Throws:
java.lang.UnsupportedOperationException
java.lang.Exception

doSend

public UMOMessage doSend(UMOEvent event)
                  throws java.lang.Exception
Specified by:
doSend in class AbstractMessageDispatcher
Parameters:
event -
Returns:
Throws:
java.lang.UnsupportedOperationException
java.lang.Exception

receive

public UMOMessage receive(UMOEndpointURI endpointUri,
                          long timeout)
                   throws java.lang.Exception
Endpoint can be in the form of pop3://username:password@pop3.muleumo.org

Parameters:
endpointUri -
timeout -
Returns:
Throws:
java.lang.Exception

getDelegateSession

public java.lang.Object getDelegateSession()
                                    throws UMOException
Throws:
UMOException

getConnector

public UMOConnector getConnector()
Specified by:
getConnector in interface UMOMessageDispatcher
Overrides:
getConnector in class AbstractMessageDispatcher

doDispose

public void doDispose()
               throws UMOException
Specified by:
doDispose in class AbstractMessageDispatcher
Throws:
UMOException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.