Package org.apache.camel.model
Class FromDefinition
- java.lang.Object
-
- org.apache.camel.model.OptionalIdentifiedDefinition<FromDefinition>
-
- org.apache.camel.model.FromDefinition
-
- All Implemented Interfaces:
org.apache.camel.CamelContextAware
,org.apache.camel.LineNumberAware
,EndpointRequiredDefinition
,org.apache.camel.NamedNode
,org.apache.camel.spi.HasId
,org.apache.camel.spi.IdAware
@Metadata(label="eip,routing") public class FromDefinition extends OptionalIdentifiedDefinition<FromDefinition> implements EndpointRequiredDefinition
Act as a message source as input to a route
-
-
Constructor Summary
Constructors Constructor Description FromDefinition()
FromDefinition(String uri)
FromDefinition(EndpointConsumerBuilder endpointConsumerBuilder)
FromDefinition(org.apache.camel.Endpoint endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clear()
org.apache.camel.Endpoint
getEndpoint()
Gets tne endpoint if anEndpoint
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 useString
toString()
-
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getParent, hasCustomIdAssigned, id, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation
-
-
-
-
Constructor Detail
-
FromDefinition
public FromDefinition()
-
FromDefinition
public FromDefinition(String uri)
-
FromDefinition
public FromDefinition(org.apache.camel.Endpoint endpoint)
-
FromDefinition
public FromDefinition(EndpointConsumerBuilder endpointConsumerBuilder)
-
-
Method Detail
-
getShortName
public String getShortName()
- Specified by:
getShortName
in interfaceorg.apache.camel.NamedNode
-
getLabel
public String getLabel()
- Specified by:
getLabel
in interfaceorg.apache.camel.NamedNode
-
getEndpointUri
public String getEndpointUri()
Description copied from interface:EndpointRequiredDefinition
Gets the uri of the endpoint used by this definition.- Specified by:
getEndpointUri
in interfaceEndpointRequiredDefinition
-
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
-
getEndpoint
public org.apache.camel.Endpoint getEndpoint()
Gets tne endpoint if anEndpoint
instance was set. This implementation may return null which means you need to usegetEndpointUri()
to get information about the endpoint.- Returns:
- the endpoint instance, or null
-
setEndpoint
public void setEndpoint(org.apache.camel.Endpoint endpoint)
-
getEndpointConsumerBuilder
public EndpointConsumerBuilder getEndpointConsumerBuilder()
-
setEndpointConsumerBuilder
public void setEndpointConsumerBuilder(EndpointConsumerBuilder endpointConsumerBuilder)
-
clear
protected void clear()
-
-