|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.mediators.AbstractMediator org.apache.synapse.mediators.throttle.ThrottleMediator
public class ThrottleMediator
The Mediator for the throttling - Throttling will occur according to the ws-policy which is specified as the key for lookup from the registry or the inline policy Only support IP based throttling- Throttling can manage per IP using the throttle policy
Field Summary |
---|
Fields inherited from class org.apache.synapse.mediators.AbstractMediator |
---|
log, trace, traceState |
Constructor Summary | |
---|---|
ThrottleMediator()
|
Method Summary | |
---|---|
void |
destroy()
This method should implement the destroying of the implemented parts of the configuration. |
String |
getId()
|
OMElement |
getInLinePolicy()
getting throttle policy which has defined as InLineXML |
Mediator |
getOnAcceptMediator()
|
String |
getOnAcceptSeqKey()
|
Mediator |
getOnRejectMediator()
|
String |
getOnRejectSeqKey()
|
String |
getPolicyKey()
To get the policy key - The key for which will used to lookup policy from the registry |
void |
init(SynapseEnvironment se)
This method should implement the initialization of the implemented parts of the configuration. |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation. |
void |
setId(String id)
|
void |
setInLinePolicy(OMElement inLinePolicy)
setting throttle policy which has defined as InLineXML |
void |
setOnAcceptMediator(Mediator onAcceptMediator)
|
void |
setOnAcceptSeqKey(String onAcceptSeqKey)
|
void |
setOnRejectMediator(Mediator onRejectMediator)
|
void |
setOnRejectSeqKey(String onRejectSeqKey)
|
void |
setPolicyKey(String policyKey)
To set the policy key - The key for which lookup from the registry |
Methods inherited from class org.apache.synapse.mediators.AbstractMediator |
---|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThrottleMediator()
Method Detail |
---|
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
se
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
public boolean mediate(MessageContext synCtx)
Mediator
mediate
in interface Mediator
synCtx
- the current message for mediation
public String getPolicyKey()
public void setPolicyKey(String policyKey)
policyKey
- Value for picking policy from the registrypublic OMElement getInLinePolicy()
public void setInLinePolicy(OMElement inLinePolicy)
inLinePolicy
- Inline policypublic String getOnRejectSeqKey()
public void setOnRejectSeqKey(String onRejectSeqKey)
public Mediator getOnRejectMediator()
public void setOnRejectMediator(Mediator onRejectMediator)
public String getOnAcceptSeqKey()
public void setOnAcceptSeqKey(String onAcceptSeqKey)
public Mediator getOnAcceptMediator()
public void setOnAcceptMediator(Mediator onAcceptMediator)
public String getId()
public void setId(String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |