|
||||||||||
| 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
public abstract class 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
Determines if Mule stamps outgoing message with a correlation ID or not. |
protected List |
endpoints
|
protected Log |
logger
logger used by this class |
protected MessageInfoMapping |
messageInfoMapping
|
protected String |
replyTo
|
protected RouterResultsHandler |
resultsHandler
|
protected TransactionConfig |
transactionConfig
|
| Fields inherited from class org.mule.routing.AbstractRouter |
|---|
muleContext |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
AbstractOutboundRouter()
|
|
| Method Summary | |
|---|---|
void |
addEndpoint(OutboundEndpoint endpoint)
Adds an endpoint to this router |
protected TransactionTemplate |
createTransactionTemplate(MuleSession session,
ImmutableEndpoint endpoint)
|
void |
dispatch(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint)
|
int |
getEnableCorrelation()
|
OutboundEndpoint |
getEndpoint(String name)
|
List |
getEndpoints()
Gets a list of Endpoint instances associated with this router |
MessageInfoMapping |
getMessageInfoMapping()
|
String |
getReplyTo()
Gets the replyTo endpoint for any outgoing messages. |
RouterResultsHandler |
getResultsHandler()
|
TransactionConfig |
getTransactionConfig()
|
boolean |
isDynamicEndpoints()
Determines whether this router supports dynamic endpoint. |
boolean |
isRequiresNewMessage()
Determines is this router requires a new message copy. |
boolean |
removeEndpoint(OutboundEndpoint endpoint)
Removes a specific endpoint from the router |
MuleMessage |
send(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint)
|
void |
setEnableCorrelation(int enableCorrelation)
|
void |
setEnableCorrelationAsString(String enableCorrelation)
|
void |
setEndpoints(List endpoints)
Sets a list of Endpoint instances associated with this router |
void |
setMessageInfoMapping(MessageInfoMapping messageInfoMapping)
|
protected void |
setMessageProperties(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint)
|
void |
setReplyTo(String replyTo)
Sets the replyTo endpoint for any outgoing messages. |
void |
setResultsHandler(RouterResultsHandler resultsHandler)
|
void |
setTransactionConfig(TransactionConfig transactionConfig)
|
| Methods inherited from class org.mule.routing.AbstractRouter |
|---|
dispose, getMuleContext, getRouterStatistics, initialise, setMuleContext, 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.api.routing.OutboundRouter |
|---|
isMatch, route |
| Methods inherited from interface org.mule.api.routing.Router |
|---|
getRouterStatistics, setRouterStatistics |
| Methods inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
initialise |
| Methods inherited from interface org.mule.api.lifecycle.Disposable |
|---|
dispose |
| 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 MessageInfoMapping messageInfoMapping
protected TransactionConfig transactionConfig
protected RouterResultsHandler resultsHandler
| Constructor Detail |
|---|
public AbstractOutboundRouter()
| Method Detail |
|---|
public void dispatch(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint)
throws MuleException
MuleException
public MuleMessage send(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint)
throws MuleException
MuleException
protected TransactionTemplate createTransactionTemplate(MuleSession session,
ImmutableEndpoint endpoint)
protected void setMessageProperties(MuleSession session,
MuleMessage message,
OutboundEndpoint endpoint)
public List getEndpoints()
OutboundRouter
getEndpoints in interface OutboundRouterpublic void setEndpoints(List endpoints)
OutboundRouter
setEndpoints in interface OutboundRouterendpoints - a list of Endpoint instancespublic void addEndpoint(OutboundEndpoint endpoint)
OutboundRouter
addEndpoint in interface OutboundRouterendpoint - the endpoint to add to the routerpublic boolean removeEndpoint(OutboundEndpoint endpoint)
OutboundRouter
removeEndpoint in interface OutboundRouterendpoint - the endpoint to remove
public String getReplyTo()
OutboundRouter
getReplyTo in interface OutboundRouterpublic void setReplyTo(String replyTo)
OutboundRouter
setReplyTo in interface OutboundRouterreplyTo - endpoint string to usepublic int getEnableCorrelation()
public void setEnableCorrelation(int enableCorrelation)
public void setEnableCorrelationAsString(String enableCorrelation)
public MessageInfoMapping getMessageInfoMapping()
public void setMessageInfoMapping(MessageInfoMapping messageInfoMapping)
public TransactionConfig getTransactionConfig()
getTransactionConfig in interface OutboundRouterpublic void setTransactionConfig(TransactionConfig transactionConfig)
setTransactionConfig in interface OutboundRouterpublic boolean isDynamicEndpoints()
OutboundRouter
isDynamicEndpoints in interface OutboundRouterpublic OutboundEndpoint getEndpoint(String name)
getEndpoint in interface OutboundRoutername - the Endpoint identifier
InboundRouterCollectionpublic RouterResultsHandler getResultsHandler()
public void setResultsHandler(RouterResultsHandler resultsHandler)
public boolean isRequiresNewMessage()
OutboundRouter
isRequiresNewMessage in interface OutboundRouter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||