public class PropertyMediator extends AbstractMediator
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_REMOVE |
static int |
ACTION_SET
The Action - set or remove
|
log, trace, traceState
Constructor and Description |
---|
PropertyMediator() |
Modifier and Type | Method and Description |
---|---|
int |
getAction() |
SynapseXPath |
getExpression() |
int |
getGroup() |
String |
getName() |
Pattern |
getPattern() |
String |
getScope() |
String |
getType()
Returns the class name of the mediator
|
Object |
getValue() |
org.apache.axiom.om.OMElement |
getValueElement() |
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Sets a property into the current (local) Synapse Context or into the Axis Message Context
or into Transports Header and removes above properties from the corresponding locations.
|
void |
setAction(int action) |
void |
setExpression(SynapseXPath expression) |
void |
setExpression(SynapseXPath expression,
String type) |
void |
setGroup(int group) |
void |
setName(String name) |
void |
setPattern(Pattern pattern) |
void |
setScope(String scope) |
void |
setValue(String value) |
void |
setValue(String value,
String type)
Set the value to be set by this property mediator and the data type
to be used when setting the value.
|
void |
setValueElement(org.apache.axiom.om.OMElement valueElement) |
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
public static final int ACTION_SET
public static final int ACTION_REMOVE
public boolean mediate(MessageContext synCtx)
synCtx
- the message contextpublic String getName()
public void setName(String name)
public Object getValue()
public void setValue(String value)
public void setValue(String value, String type)
value
- the value to be set as a stringtype
- the type namepublic String getType()
AbstractMediator
getType
in interface Mediator
getType
in class AbstractMediator
public org.apache.axiom.om.OMElement getValueElement()
public void setValueElement(org.apache.axiom.om.OMElement valueElement)
public SynapseXPath getExpression()
public void setExpression(SynapseXPath expression)
public void setExpression(SynapseXPath expression, String type)
public String getScope()
public void setScope(String scope)
public int getAction()
public void setAction(int action)
public Pattern getPattern()
public void setPattern(Pattern pattern)
public int getGroup()
public void setGroup(int group)
public boolean isContentAware()
isContentAware
in interface Mediator
isContentAware
in class AbstractMediator
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.