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 java.lang.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() |
java.lang.String |
getMediatorName()
Returns the name of the class of respective mediator.
|
java.lang.String |
getName() |
java.util.regex.Pattern |
getPattern() |
java.lang.String |
getScope() |
java.lang.String |
getType()
Returns the class name of the mediator
|
java.lang.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 |
reportCloseStatistics(MessageContext messageContext,
java.lang.Integer currentIndex)
Report Close Statistic Event for the Mediator
|
void |
setAction(int action) |
void |
setDynamicNameValue(Value nameValue)
Setter for the Value of the Name attribute when it has a dynamic value.
|
void |
setExpression(SynapsePath expression) |
void |
setExpression(SynapsePath expression,
java.lang.String type) |
void |
setGroup(int group) |
void |
setName(java.lang.String name) |
void |
setPattern(java.util.regex.Pattern pattern) |
void |
setScope(java.lang.String scope) |
void |
setValue(java.lang.String value) |
void |
setValue(java.lang.String value,
java.lang.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, 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 java.lang.String CONTENT_TYPE
public boolean mediate(MessageContext synCtx)
synCtx
- the message contextpublic java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.Object getValue()
public void setValue(java.lang.String value)
public void setValue(java.lang.String value, java.lang.String type)
value
- the value to be set as a stringtype
- the type namepublic java.lang.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 reportCloseStatistics(MessageContext messageContext, java.lang.Integer currentIndex)
Mediator
reportCloseStatistics
in interface Mediator
reportCloseStatistics
in class AbstractMediator
public void setExpression(SynapsePath expression, java.lang.String type)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
public int getAction()
public void setAction(int action)
public java.util.regex.Pattern getPattern()
public void setPattern(java.util.regex.Pattern pattern)
public int getGroup()
public void setGroup(int group)
public boolean isContentAware()
isContentAware
in interface Mediator
isContentAware
in class AbstractMediator
public java.lang.String getMediatorName()
AbstractMediator
getMediatorName
in interface Mediator
getMediatorName
in class AbstractMediator
public void setDynamicNameValue(Value nameValue)
nameValue
- Value of the dynamic name valueCopyright © 2005-2020 Apache Software Foundation. All Rights Reserved.