public class PropertyMediator extends AbstractMediator
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_REMOVE |
static int |
ACTION_SET
The Action - set or remove
|
static String |
CONTENT_TYPE
Define the Content type of the resource
|
log, trace, traceState
Constructor and Description |
---|
PropertyMediator() |
Modifier and Type | Method and Description |
---|---|
int |
getAction() |
SynapsePath |
getExpression() |
int |
getGroup() |
String |
getMediatorName()
Returns the name of the class of respective mediator.
|
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(SynapsePath expression) |
void |
setExpression(SynapsePath 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, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, handleException, handleException, isBreakPoint, isContentAltering, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
public static final int ACTION_SET
public static final int ACTION_REMOVE
public static final String CONTENT_TYPE
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 SynapsePath getExpression()
public void setExpression(SynapsePath expression)
public void setExpression(SynapsePath 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
public String getMediatorName()
AbstractMediator
getMediatorName
in interface Mediator
getMediatorName
in class AbstractMediator
Copyright © 2005–2018 Apache Software Foundation. All rights reserved.