public class CalloutMediator extends AbstractMediator implements ManagedLifecycle
log, trace, traceState
Constructor and Description |
---|
CalloutMediator() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
String |
getAction() |
String |
getAxis2xml() |
String |
getClientRepository() |
Endpoint |
getEndpoint()
Get the defined endpoint
|
String |
getInboundWsSecPolicyKey()
Get the inbound security policy key.
|
String |
getOutboundWsSecPolicyKey()
Get the outbound security policy key.
|
String |
getRequestKey() |
SynapseXPath |
getRequestXPath() |
String |
getServiceURL() |
String |
getTargetKey() |
SynapseXPath |
getTargetXPath() |
String |
getWsSecPolicyKey()
Return the Rampart Security configuration policy's 'key' to be used
|
void |
init(SynapseEnvironment synEnv)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isInitClientOptions() |
boolean |
isPassHeaders() |
boolean |
isSecurityOn()
Is WS-Security turned on?
|
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 |
setEndpoint(Endpoint endpoint)
Set the defined endpoint
|
void |
setInboundWsSecPolicyKey(String inboundWsSecPolicyKey)
Set the inbound security policy key.
|
void |
setInitClientOptions(boolean initClientOptions) |
void |
setOutboundWsSecPolicyKey(String outboundWsSecPolicyKey)
Set the outbound security policy key.This is used when we specify different policies for
inbound and outbound.
|
void |
setPassHeaders(boolean passHeaders) |
void |
setRequestKey(String requestKey) |
void |
setRequestXPath(SynapseXPath requestXPath) |
void |
setSecurityOn(boolean securityOn)
Request that WS-Sec be turned on/off
|
void |
setServiceURL(String serviceURL) |
void |
setTargetKey(String targetKey) |
void |
setTargetXPath(SynapseXPath targetXPath) |
void |
setWsSecPolicyKey(String wsSecPolicyKey)
Set the Rampart Security configuration policy's 'key' to be used
|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isContentAware, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
public boolean mediate(MessageContext synCtx)
Mediator
public void init(SynapseEnvironment synEnv)
ManagedLifecycle
init
in interface ManagedLifecycle
synEnv
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
public String getServiceURL()
public void setServiceURL(String serviceURL)
public String getAction()
public void setAction(String action)
public String getRequestKey()
public void setRequestKey(String requestKey)
public void setRequestXPath(SynapseXPath requestXPath) throws org.jaxen.JaxenException
org.jaxen.JaxenException
public void setTargetXPath(SynapseXPath targetXPath) throws org.jaxen.JaxenException
org.jaxen.JaxenException
public String getTargetKey()
public void setTargetKey(String targetKey)
public SynapseXPath getRequestXPath()
public SynapseXPath getTargetXPath()
public String getClientRepository()
public void setClientRepository(String clientRepository)
public String getAxis2xml()
public void setAxis2xml(String axis2xml)
public boolean isPassHeaders()
public void setPassHeaders(boolean passHeaders)
public boolean isInitClientOptions()
public void setInitClientOptions(boolean initClientOptions)
public boolean isSecurityOn()
public void setSecurityOn(boolean securityOn)
securityOn
- a boolean flag indicating security is on or notpublic String getWsSecPolicyKey()
public void setWsSecPolicyKey(String wsSecPolicyKey)
wsSecPolicyKey
- the Rampart Security configuration policy's 'key' to be usedpublic String getOutboundWsSecPolicyKey()
public void setOutboundWsSecPolicyKey(String outboundWsSecPolicyKey)
outboundWsSecPolicyKey
- outbound security policy key.public String getInboundWsSecPolicyKey()
public void setInboundWsSecPolicyKey(String inboundWsSecPolicyKey)
inboundWsSecPolicyKey
- inbound security policy key.public Endpoint getEndpoint()
public void setEndpoint(Endpoint endpoint)
endpoint
- defined endpointCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.