public class FromDefinition extends OptionalIdentifiedDefinition<FromDefinition>
Constructor and Description |
---|
FromDefinition() |
FromDefinition(Endpoint endpoint) |
FromDefinition(String uri) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
protected static String |
description(String uri,
String ref,
Endpoint endpoint) |
Endpoint |
getEndpoint()
Gets tne endpoint if an
Endpoint instance was set. |
String |
getLabel() |
String |
getRef() |
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images
|
String |
getUri() |
Object |
getUriOrRef()
Returns the endpoint URI or the name of the reference to it
|
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() |
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, id, idOrCreate, setDescription, setId
public FromDefinition()
public FromDefinition(String uri)
public FromDefinition(Endpoint endpoint)
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OptionalIdentifiedDefinition<FromDefinition>
public String getLabel()
public Endpoint resolveEndpoint(RouteContext context)
public String getUri()
@Required public void setUri(String uri)
uri
- the endpoint URI to usepublic String getRef()
public void setRef(String ref)
ref
- the reference name to usepublic Endpoint getEndpoint()
Endpoint
instance was set.
This implementation may return null which means you need to use
getRef()
or getUri()
to get information about the endpoint.public void setEndpoint(Endpoint endpoint)
public Object getUriOrRef()
protected void clear()
Apache Camel