|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.routing.AbstractRouter
org.mule.routing.outbound.AbstractOutboundRouter
AbstractOutboundRouter
is a base router class that tracks
statistics about message processing through the router.
Field Summary | |
static int |
ENABLE_CORRELATION_ALWAYS
|
static int |
ENABLE_CORRELATION_IF_NOT_SET
|
static int |
ENABLE_CORRELATION_NEVER
|
protected int |
enableCorrelation
|
protected List |
endpoints
|
protected Log |
logger
logger used by this class |
protected PropertyExtractor |
propertyExtractor
|
protected String |
replyTo
|
protected UMOTransactionConfig |
transactionConfig
|
Constructor Summary | |
AbstractOutboundRouter()
|
Method Summary | |
void |
addEndpoint(UMOEndpoint endpoint)
Adds an endpoint to this router |
void |
dispatch(UMOSession session,
UMOMessage message,
UMOEndpoint endpoint)
|
int |
getEnableCorrelation()
|
List |
getEndpoints()
Gets a list of UMOEndpoint instances associated with this router |
PropertyExtractor |
getPropertyExtractor()
|
String |
getReplyTo()
Gets the replyTo endpoint for any outgoing messages. |
UMOTransactionConfig |
getTransactionConfig()
|
boolean |
isDynamicEndpoints()
Determines whether this router supports dynamic endpoint. |
boolean |
removeEndpoint(UMOImmutableEndpoint endpoint)
Removes a specific endpoint from the router |
UMOMessage |
send(UMOSession session,
UMOMessage message,
UMOEndpoint endpoint)
|
void |
setEnableCorrelation(int enableCorrelation)
|
void |
setEnableCorrelationAsString(String enableCorrelation)
|
void |
setEndpoints(List endpoints)
Sets a list of UMOEndpoint instances associated with this router |
protected void |
setMessageProperties(UMOSession session,
UMOMessage message,
UMOEndpoint endpoint)
|
void |
setPropertyExtractor(PropertyExtractor propertyExtractor)
|
void |
setPropertyExtractorAsString(String className)
|
void |
setReplyTo(String replyTo)
Sets the replyTo endpoint for any outgoing messages. |
void |
setTransactionConfig(UMOTransactionConfig transactionConfig)
|
Methods inherited from class org.mule.routing.AbstractRouter |
getRouterStatistics, setRouterStatistics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mule.umo.routing.UMOOutboundRouter |
isMatch, route |
Methods inherited from interface org.mule.umo.routing.UMORouter |
getRouterStatistics, setRouterStatistics |
Field Detail |
public static final int ENABLE_CORRELATION_IF_NOT_SET
public static final int ENABLE_CORRELATION_ALWAYS
public static final int ENABLE_CORRELATION_NEVER
protected transient Log logger
protected List endpoints
protected String replyTo
protected int enableCorrelation
protected PropertyExtractor propertyExtractor
protected UMOTransactionConfig transactionConfig
Constructor Detail |
public AbstractOutboundRouter()
Method Detail |
public void dispatch(UMOSession session, UMOMessage message, UMOEndpoint endpoint) throws UMOException
UMOException
public UMOMessage send(UMOSession session, UMOMessage message, UMOEndpoint endpoint) throws UMOException
UMOException
protected void setMessageProperties(UMOSession session, UMOMessage message, UMOEndpoint endpoint)
public List getEndpoints()
UMOOutboundRouter
getEndpoints
in interface UMOOutboundRouter
public void setEndpoints(List endpoints)
UMOOutboundRouter
setEndpoints
in interface UMOOutboundRouter
endpoints
- a list of UMOEndpoint instancespublic void addEndpoint(UMOEndpoint endpoint)
UMOOutboundRouter
addEndpoint
in interface UMOOutboundRouter
endpoint
- the endpoint to add to the routerpublic boolean removeEndpoint(UMOImmutableEndpoint endpoint)
UMOOutboundRouter
removeEndpoint
in interface UMOOutboundRouter
endpoint
- the endpoint to remove
public String getReplyTo()
UMOOutboundRouter
getReplyTo
in interface UMOOutboundRouter
public void setReplyTo(String replyTo)
UMOOutboundRouter
setReplyTo
in interface UMOOutboundRouter
replyTo
- endpoint string to usepublic int getEnableCorrelation()
public void setEnableCorrelation(int enableCorrelation)
public void setEnableCorrelationAsString(String enableCorrelation)
public PropertyExtractor getPropertyExtractor()
public void setPropertyExtractor(PropertyExtractor propertyExtractor)
public void setPropertyExtractorAsString(String className)
public UMOTransactionConfig getTransactionConfig()
getTransactionConfig
in interface UMOOutboundRouter
public void setTransactionConfig(UMOTransactionConfig transactionConfig)
setTransactionConfig
in interface UMOOutboundRouter
public boolean isDynamicEndpoints()
UMOOutboundRouter
isDynamicEndpoints
in interface UMOOutboundRouter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |