org.apache.camel.model
Class FromDefinition
java.lang.Object
org.apache.camel.model.OptionalIdentifiedType<FromDefinition>
org.apache.camel.model.FromDefinition
public class FromDefinition
- extends OptionalIdentifiedType<FromDefinition>
Represents an XML <from/> element
- Version:
- $Revision: 750806 $
FromDefinition
public FromDefinition()
FromDefinition
public FromDefinition(String uri)
FromDefinition
public FromDefinition(Endpoint endpoint)
toString
public String toString()
- Overrides:
toString
in class Object
getShortName
public String getShortName()
- Description copied from class:
OptionalIdentifiedType
- Returns a short name for this node which can be useful for ID generation or referring to related resources like images
- Overrides:
getShortName
in class OptionalIdentifiedType<FromDefinition>
- Returns:
- defaults to "node" but derived nodes should overload this to provide a unique name
getLabel
public String getLabel()
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)
getUriOrRef
public Object getUriOrRef()
- Returns the endpoint URI or the name of the reference to it
description
protected static String description(String uri,
String ref,
Endpoint endpoint)
clear
protected void clear()
Apache CAMEL