|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<FromDefinition> org.apache.camel.model.FromDefinition
public class FromDefinition
Represents an XML <from/> element
Constructor Summary | |
---|---|
FromDefinition()
|
|
FromDefinition(Endpoint endpoint)
|
|
FromDefinition(String uri)
|
Method Summary | |
---|---|
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 |
getLabel()
|
String |
getRef()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
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)
Sets the name of the endpoint within the registry (such as the Spring ApplicationContext or JNDI) to use |
void |
setUri(String uri)
Sets the URI of the endpoint to use |
String |
toString()
|
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, id, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FromDefinition()
public FromDefinition(String uri)
public FromDefinition(Endpoint endpoint)
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class OptionalIdentifiedDefinition<FromDefinition>
public String getLabel()
public Endpoint resolveEndpoint(RouteContext context)
public String getUri()
@Required public void setUri(String uri)
uri
- the endpoint URI to usepublic String getRef()
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 static String description(String uri, String ref, Endpoint endpoint)
protected void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |