Package org.apache.synapse.mediators.eip
Class Target
- java.lang.Object
-
- org.apache.synapse.mediators.eip.Target
-
public class Target extends Object
A bean class that holds the target (i.e. sequence or endpoint) information for a message as used by common EIP mediators
-
-
Constructor Summary
Constructors Constructor Description Target()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointgetEndpoint()StringgetEndpointRef()SequenceMediatorgetSequence()StringgetSequenceRef()StringgetSoapAction()StringgetToAddress()booleanisAsynchronous()booleanmediate(MessageContext synCtx)process the message through this target (may be to mediate using the target sequence, send message to the target endpoint or both)voidsetAsynchronous(boolean asynchronous)voidsetEndpoint(Endpoint endpoint)voidsetEndpointRef(String endpointRef)voidsetSequence(SequenceMediator sequence)voidsetSequenceRef(String sequenceRef)voidsetSoapAction(String soapAction)voidsetStatisticIdForMediators(ArtifactHolder holder)voidsetToAddress(String toAddress)
-
-
-
Method Detail
-
mediate
public boolean mediate(MessageContext synCtx)
process the message through this target (may be to mediate using the target sequence, send message to the target endpoint or both)- Parameters:
synCtx- - MessageContext to be mediated- Returns:
falseif the target is mediated as synchronous and the sequence mediation returnsfalse,trueotherwise
-
getToAddress
public String getToAddress()
-
setToAddress
public void setToAddress(String toAddress)
-
getSoapAction
public String getSoapAction()
-
setSoapAction
public void setSoapAction(String soapAction)
-
getSequence
public SequenceMediator getSequence()
-
setSequence
public void setSequence(SequenceMediator sequence)
-
getSequenceRef
public String getSequenceRef()
-
setSequenceRef
public void setSequenceRef(String sequenceRef)
-
getEndpoint
public Endpoint getEndpoint()
-
setEndpoint
public void setEndpoint(Endpoint endpoint)
-
getEndpointRef
public String getEndpointRef()
-
setEndpointRef
public void setEndpointRef(String endpointRef)
-
setAsynchronous
public void setAsynchronous(boolean asynchronous)
-
isAsynchronous
public boolean isAsynchronous()
-
setStatisticIdForMediators
public void setStatisticIdForMediators(ArtifactHolder holder)
-
-