org.apache.synapse.mediators.builtin
Class CalloutMediator

java.lang.Object
  extended by org.apache.synapse.mediators.AbstractMediator
      extended by org.apache.synapse.mediators.builtin.CalloutMediator
All Implemented Interfaces:
AspectConfigurable, ManagedLifecycle, Mediator, SynapseArtifact

public class CalloutMediator
extends AbstractMediator
implements ManagedLifecycle

?


Field Summary
static String DEFAULT_AXIS2_XML
           
static String DEFAULT_CLIENT_REPO
           
 
Fields inherited from class org.apache.synapse.mediators.AbstractMediator
log, trace, traceState
 
Constructor Summary
CalloutMediator()
           
 
Method Summary
 void destroy()
          This method should implement the destroying of the implemented parts of the configuration.
 String getAction()
           
 String getAxis2xml()
           
 String getClientRepository()
           
 String getRequestKey()
           
 SynapseXPath getRequestXPath()
           
 String getServiceURL()
           
 String getTargetKey()
           
 SynapseXPath getTargetXPath()
           
 void init(SynapseEnvironment synEnv)
          This method should implement the initialization of the implemented parts of the configuration.
 boolean mediate(MessageContext synCtx)
          Invokes the mediator passing the current message for mediation.
 void setAction(String action)
           
 void setAxis2xml(String axis2xml)
           
 void setClientRepository(String clientRepository)
           
 void setRequestKey(String requestKey)
           
 void setRequestXPath(SynapseXPath requestXPath)
           
 void setServiceURL(String serviceURL)
           
 void setTargetKey(String targetKey)
           
 void setTargetXPath(SynapseXPath targetXPath)
           
 
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CLIENT_REPO

public static final String DEFAULT_CLIENT_REPO
See Also:
Constant Field Values

DEFAULT_AXIS2_XML

public static final String DEFAULT_AXIS2_XML
See Also:
Constant Field Values
Constructor Detail

CalloutMediator

public CalloutMediator()
Method Detail

mediate

public boolean mediate(MessageContext synCtx)
Description copied from interface: Mediator
Invokes the mediator passing the current message for mediation. Each mediator performs its mediation action, and returns true if mediation should continue, or false if further mediation should be aborted.

Specified by:
mediate in interface Mediator
Parameters:
synCtx - the current message for mediation
Returns:
true if further mediation should continue

init

public void init(SynapseEnvironment synEnv)
Description copied from interface: ManagedLifecycle
This method should implement the initialization of the implemented parts of the configuration.

Specified by:
init in interface ManagedLifecycle
Parameters:
synEnv - SynapseEnvironment to be used for initialization

destroy

public void destroy()
Description copied from interface: ManagedLifecycle
This method should implement the destroying of the implemented parts of the configuration.

Specified by:
destroy in interface ManagedLifecycle

getServiceURL

public String getServiceURL()

setServiceURL

public void setServiceURL(String serviceURL)

getAction

public String getAction()

setAction

public void setAction(String action)

getRequestKey

public String getRequestKey()

setRequestKey

public void setRequestKey(String requestKey)

setRequestXPath

public void setRequestXPath(SynapseXPath requestXPath)
                     throws JaxenException
Throws:
JaxenException

setTargetXPath

public void setTargetXPath(SynapseXPath targetXPath)
                    throws JaxenException
Throws:
JaxenException

getTargetKey

public String getTargetKey()

setTargetKey

public void setTargetKey(String targetKey)

getRequestXPath

public SynapseXPath getRequestXPath()

getTargetXPath

public SynapseXPath getTargetXPath()

getClientRepository

public String getClientRepository()

setClientRepository

public void setClientRepository(String clientRepository)

getAxis2xml

public String getAxis2xml()

setAxis2xml

public void setAxis2xml(String axis2xml)


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