org.apache.camel.model
Class FromType

java.lang.Object
  extended by org.apache.camel.model.FromType

public class FromType
extends Object

Represents an XML <to/> element

Version:
$Revision: $

Constructor Summary
FromType()
           
FromType(Endpoint endpoint)
           
FromType(String uri)
           
 
Method Summary
protected static String description(String uri, String ref, Endpoint endpoint)
           
 Endpoint getEndpoint()
           
 String getRef()
           
 String getUri()
           
 Endpoint resolveEndpoint(RouteContext context)
           
 void setEndpoint(Endpoint endpoint)
           
 void setRef(String ref)
          Sets the name of the endpoint within the registry (such as the Spring ApplicationContext or JNDI) to use
 void setUri(String uri)
          Sets the URI of the endpoint to use
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FromType

public FromType()

FromType

public FromType(String uri)

FromType

public FromType(Endpoint endpoint)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

resolveEndpoint

public Endpoint resolveEndpoint(RouteContext context)

getUri

public String getUri()

setUri

public void setUri(String uri)
Sets the URI of the endpoint to use

Parameters:
uri - the endpoint URI to use

getRef

public String getRef()

setRef

public void setRef(String ref)
Sets the name of the endpoint within the registry (such as the Spring ApplicationContext or JNDI) to use

Parameters:
ref - the reference name to use

getEndpoint

public Endpoint getEndpoint()

setEndpoint

public void setEndpoint(Endpoint endpoint)

description

protected static String description(String uri,
                                    String ref,
                                    Endpoint endpoint)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.