org.apache.camel.component.mail
Class MailComponent

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultComponent<MailExchange>
          extended by org.apache.camel.component.mail.MailComponent
All Implemented Interfaces:
org.apache.camel.Component<MailExchange>, org.apache.camel.Service

public class MailComponent
extends org.apache.camel.impl.DefaultComponent<MailExchange>

Version:
$Revision:520964 $

Field Summary
static String QUEUE_PREFIX
           
static String TOPIC_PREFIX
           
 
Constructor Summary
MailComponent()
           
MailComponent(org.apache.camel.CamelContext context)
           
MailComponent(MailConfiguration configuration)
           
 
Method Summary
protected  String convertPathToActualDestination(String path)
          A strategy method allowing the URI destination to be translated into the actual Mail destination name (say by looking up in JNDI or something)
protected  org.apache.camel.Endpoint<MailExchange> createEndpoint(String uri, String remaining, Map parameters)
           
 MailConfiguration getConfiguration()
           
static MailComponent mailComponent()
          Static builder method
static MailComponent mailComponent(MailConfiguration configuration)
          Static builder method
 void setConfiguration(MailConfiguration configuration)
          Sets the Mail configuration
 
Methods inherited from class org.apache.camel.impl.DefaultComponent
createEndpoint, createExecutorService, doStart, doStop, getCamelContext, getExecutorService, setCamelContext, setExecutorService
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
isStarted, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUEUE_PREFIX

public static final String QUEUE_PREFIX
See Also:
Constant Field Values

TOPIC_PREFIX

public static final String TOPIC_PREFIX
See Also:
Constant Field Values
Constructor Detail

MailComponent

public MailComponent()

MailComponent

public MailComponent(MailConfiguration configuration)

MailComponent

public MailComponent(org.apache.camel.CamelContext context)
Method Detail

mailComponent

public static MailComponent mailComponent()
Static builder method


mailComponent

public static MailComponent mailComponent(MailConfiguration configuration)
Static builder method


createEndpoint

protected org.apache.camel.Endpoint<MailExchange> createEndpoint(String uri,
                                                                 String remaining,
                                                                 Map parameters)
                                                          throws Exception
Specified by:
createEndpoint in class org.apache.camel.impl.DefaultComponent<MailExchange>
Throws:
Exception

getConfiguration

public MailConfiguration getConfiguration()

setConfiguration

public void setConfiguration(MailConfiguration configuration)
Sets the Mail configuration

Parameters:
configuration - the configuration to use by default for endpoints

convertPathToActualDestination

protected String convertPathToActualDestination(String path)
A strategy method allowing the URI destination to be translated into the actual Mail destination name (say by looking up in JNDI or something)



Copyright © 2007 Apache Software Foundation. All Rights Reserved.