public class DiscountQuoteMediator extends AbstractMediator
trace, traceState
Constructor and Description |
---|
DiscountQuoteMediator() |
Modifier and Type | Method and Description |
---|---|
String |
getBonusFor() |
String |
getDiscountFactor() |
int |
getTraceState()
Returns the tracing state
|
String |
getType()
Returns the class name of the mediator
|
boolean |
mediate(MessageContext mc)
Invokes the mediator passing the current message for mediation.
|
void |
setBonusFor(String bonus) |
void |
setDiscountFactor(String discount) |
void |
setTraceState(int traceState)
Set the tracing state variable
|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, handleException, handleException, isContentAware, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
public boolean mediate(MessageContext mc)
Mediator
mc
- the current message for mediationpublic String getType()
AbstractMediator
getType
in interface Mediator
getType
in class AbstractMediator
public void setTraceState(int traceState)
AbstractMediator
setTraceState
in interface Mediator
setTraceState
in class AbstractMediator
traceState
- the new tracing state for this mediator (see SynapseConstants)public int getTraceState()
AbstractMediator
getTraceState
in interface Mediator
getTraceState
in class AbstractMediator
public void setDiscountFactor(String discount)
public String getDiscountFactor()
public void setBonusFor(String bonus)
public String getBonusFor()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.