@Metadata(label="eip,endpoint,routing") public class FromDefinition extends OptionalIdentifiedDefinition<FromDefinition> implements EndpointRequiredDefinition
| 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 |
getEndpointUri()
Gets the uri of the endpoint used by this definition.
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
String |
getRef() |
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)
Deprecated.
use uri with ref:uri instead
|
void |
setUri(String uri)
Sets the URI of the endpoint to use
|
String |
toString() |
description, description, getCustomId, getDescription, getDescriptionText, getId, getShortName, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setIdpublic FromDefinition()
public FromDefinition(String uri)
public FromDefinition(Endpoint endpoint)
public String getLabel()
NamedNodepublic Endpoint resolveEndpoint(RouteContext context)
public String getEndpointUri()
EndpointRequiredDefinitiongetEndpointUri in interface EndpointRequiredDefinitionpublic String getUri()
public void setUri(String uri)
uri - the endpoint URI to usepublic String getRef()
@Deprecated 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()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.