T - Service object typepublic interface IPolicyChain<T>
| Modifier and Type | Method and Description |
|---|---|
void |
doApply(T serviceObject)
Called by a policy when it has successfully completed applying itself.
|
void |
doFailure(io.apiman.gateway.engine.beans.PolicyFailure failure)
Called by a policy when it has detected a violation or failure in the policy.
|
void |
doSkip(T serviceObject)
Immediately trigger a successful response, rather than waiting for the entire
policy chain to complete.
|
void |
throwError(Throwable error)
Called by a policy when an unexpected and unrecoverable error is encountered.
|
void doApply(T serviceObject)
serviceObject - the service objectvoid doSkip(T serviceObject)
serviceObject - the service objectvoid doFailure(io.apiman.gateway.engine.beans.PolicyFailure failure)
failure - the policy failurevoid throwError(Throwable error)
error - the error thrownCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.