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 Endpoint
getEndpoint()
String
getEndpointRef()
SequenceMediator
getSequence()
String
getSequenceRef()
String
getSoapAction()
String
getToAddress()
boolean
isAsynchronous()
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)void
setAsynchronous(boolean asynchronous)
void
setEndpoint(Endpoint endpoint)
void
setEndpointRef(String endpointRef)
void
setSequence(SequenceMediator sequence)
void
setSequenceRef(String sequenceRef)
void
setSoapAction(String soapAction)
void
setStatisticIdForMediators(ArtifactHolder holder)
void
setToAddress(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:
false
if the target is mediated as synchronous and the sequence mediation returnsfalse
,true
otherwise
-
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)
-
-