|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.FromType
public class FromType
Represents an XML <from/> element
| Constructor Summary | |
|---|---|
FromType()
|
|
FromType(Endpoint<? extends Exchange> endpoint)
|
|
FromType(String uri)
|
|
| Method Summary | |
|---|---|
protected static String |
description(String uri,
String ref,
Endpoint endpoint)
|
Endpoint |
getEndpoint()
|
String |
getLabel()
|
String |
getRef()
|
String |
getUri()
|
Object |
getUriOrRef()
Returns the endpoint URI or the name of the reference to it |
Endpoint<? extends Exchange> |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FromType()
public FromType(String uri)
public FromType(Endpoint<? extends Exchange> endpoint)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getLabel()
public Endpoint<? extends Exchange> resolveEndpoint(RouteContext context)
public String getUri()
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()
public void setEndpoint(Endpoint endpoint)
public Object getUriOrRef()
protected static String description(String uri,
String ref,
Endpoint endpoint)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||