org.mule.providers.email
Class RetrieveMessageDispatcherFactory

java.lang.Object
  extended by org.mule.providers.AbstractMessageDispatcherFactory
      extended by org.mule.providers.email.RetrieveMessageDispatcherFactory
All Implemented Interfaces:
UMOMessageDispatcherFactory

public class RetrieveMessageDispatcherFactory
extends AbstractMessageDispatcherFactory

A source of mail receiving message dispatchers. The dispatcher can only be used to receive message (as apposed to listening for them). Trying to send or dispatch will throw an UnsupportedOperationException.


Constructor Summary
RetrieveMessageDispatcherFactory()
           
 
Method Summary
 UMOMessageDispatcher create(UMOImmutableEndpoint endpoint)
          Creates a new message dispatcher instance, initialised with the passed endpoint.
 boolean isCreateDispatcherPerRequest()
          By default client connections are closed after the request.
 
Methods inherited from class org.mule.providers.AbstractMessageDispatcherFactory
activate, destroy, passivate, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RetrieveMessageDispatcherFactory

public RetrieveMessageDispatcherFactory()
Method Detail

isCreateDispatcherPerRequest

public boolean isCreateDispatcherPerRequest()
By default client connections are closed after the request.

Specified by:
isCreateDispatcherPerRequest in interface UMOMessageDispatcherFactory
Overrides:
isCreateDispatcherPerRequest in class AbstractMessageDispatcherFactory
Returns:
false by default, unless overwritten by a subclass.

create

public UMOMessageDispatcher create(UMOImmutableEndpoint endpoint)
                            throws UMOException
Description copied from interface: UMOMessageDispatcherFactory
Creates a new message dispatcher instance, initialised with the passed endpoint. The returned instance should be immediately useable.

Specified by:
create in interface UMOMessageDispatcherFactory
Specified by:
create in class AbstractMessageDispatcherFactory
Parameters:
endpoint - the endoint for which this dispatcher should be created
Returns:
a properly created UMOMessageDispatcher for this transport
Throws:
UMOException - if the dispatcher cannot be created


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.