@Metadata(label="eip,endpoint,routing") public class FromDefinition extends OptionalIdentifiedDefinition<FromDefinition> implements EndpointRequiredDefinition
Constructor and Description |
---|
FromDefinition() |
FromDefinition(org.apache.camel.Endpoint endpoint) |
FromDefinition(EndpointConsumerBuilder endpointConsumerBuilder) |
FromDefinition(String uri) |
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
org.apache.camel.Endpoint |
getEndpoint()
Gets tne endpoint if an
Endpoint instance was set. |
EndpointConsumerBuilder |
getEndpointConsumerBuilder() |
String |
getEndpointUri()
Gets the uri of the endpoint used by this definition.
|
String |
getLabel() |
String |
getShortName() |
String |
getUri() |
void |
setEndpoint(org.apache.camel.Endpoint endpoint) |
void |
setEndpointConsumerBuilder(EndpointConsumerBuilder endpointConsumerBuilder) |
void |
setUri(String uri)
Sets the URI of the endpoint to use
|
String |
toString() |
description, description, getCustomId, getDescription, getDescriptionText, getId, getParent, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
public FromDefinition()
public FromDefinition(String uri)
public FromDefinition(org.apache.camel.Endpoint endpoint)
public FromDefinition(EndpointConsumerBuilder endpointConsumerBuilder)
public String getShortName()
getShortName
in interface org.apache.camel.NamedNode
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
getEndpointUri()
to get information about the endpoint.public void setEndpoint(org.apache.camel.Endpoint endpoint)
public EndpointConsumerBuilder getEndpointConsumerBuilder()
public void setEndpointConsumerBuilder(EndpointConsumerBuilder endpointConsumerBuilder)
protected void clear()
Apache Camel