@Metadata(label="eip,endpoint,routing") public class FromDefinition extends OptionalIdentifiedDefinition<FromDefinition> implements EndpointRequiredDefinition
Constructor and Description |
---|
FromDefinition() |
FromDefinition(org.apache.camel.Endpoint endpoint) |
FromDefinition(String uri) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
protected static String |
description(String uri,
org.apache.camel.Endpoint endpoint) |
org.apache.camel.Endpoint |
getEndpoint()
Gets tne endpoint if an
Endpoint instance was set. |
String |
getEndpointUri()
Gets the uri of the endpoint used by this definition.
|
String |
getLabel() |
String |
getShortName() |
String |
getUri() |
org.apache.camel.Endpoint |
resolveEndpoint(org.apache.camel.spi.RouteContext context) |
void |
setEndpoint(org.apache.camel.Endpoint endpoint) |
void |
setUri(String uri)
Sets the URI of the endpoint to use
|
String |
toString() |
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setId
public FromDefinition()
public FromDefinition(String uri)
public FromDefinition(org.apache.camel.Endpoint endpoint)
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
public org.apache.camel.Endpoint resolveEndpoint(org.apache.camel.spi.RouteContext context)
public String getEndpointUri()
EndpointRequiredDefinition
getEndpointUri
in interface EndpointRequiredDefinition
public void setUri(String uri)
uri
- the endpoint URI to usepublic org.apache.camel.Endpoint getEndpoint()
Endpoint
instance was set.
This implementation may return null which means you need to use
getUri()
to get information about the endpoint.public void setEndpoint(org.apache.camel.Endpoint endpoint)
protected static String description(String uri, org.apache.camel.Endpoint endpoint)
protected void clear()
Apache Camel