org.apache.synapse.mediators.eip
Class Target

java.lang.Object
  extended by 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
Target()
           
 
Method Summary
 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 setToAddress(String toAddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Target

public Target()
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 returns false, 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()


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.