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.HasCamelContext,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
ConstructorsConstructorDescriptionFromDefinition(String uri) FromDefinition(EndpointConsumerBuilder endpointConsumerBuilder) FromDefinition(org.apache.camel.Endpoint endpoint) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()org.apache.camel.EndpointGets tne endpoint if anEndpointinstance was set.Gets the uri of the endpoint used by this definition.getLabel()org.apache.camel.NamedNodegetUri()voidsetEndpoint(org.apache.camel.Endpoint endpoint) voidsetEndpointConsumerBuilder(EndpointConsumerBuilder endpointConsumerBuilder) voidsetParent(RouteDefinition parent) voidSets the URI of the endpoint to usevoidsetVariableReceive(String variableReceive) To use a variable to store a copy of the received message body (only body, not headers).toString()Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getNodePrefixId, hasCustomIdAssigned, id, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.NamedNode
acceptDebugger
-
Constructor Details
-
FromDefinition
public FromDefinition() -
FromDefinition
-
FromDefinition
public FromDefinition(org.apache.camel.Endpoint endpoint) -
FromDefinition
-
-
Method Details
-
toString
-
getShortName
- Specified by:
getShortNamein interfaceorg.apache.camel.NamedNode
-
getLabel
- Specified by:
getLabelin interfaceorg.apache.camel.NamedNode
-
getEndpointUri
Description copied from interface:EndpointRequiredDefinitionGets the uri of the endpoint used by this definition.- Specified by:
getEndpointUriin interfaceEndpointRequiredDefinition
-
getParent
public org.apache.camel.NamedNode getParent()- Specified by:
getParentin interfaceorg.apache.camel.NamedNode- Overrides:
getParentin classOptionalIdentifiedDefinition<FromDefinition>
-
setParent
-
getUri
-
setUri
Sets the URI of the endpoint to use- Parameters:
uri- the endpoint URI to use
-
getVariableReceive
-
setVariableReceive
To use a variable to store a copy of the received message body (only body, not headers). This is handy for easy access to the received message body via variables. -
getEndpoint
public org.apache.camel.Endpoint getEndpoint()Gets tne endpoint if anEndpointinstance 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
-
setEndpointConsumerBuilder
-
clear
protected void clear()
-