public class ApiManagementInterceptor extends AbstractInterceptor
Interceptor.Flow| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_JSON |
id, name, router| Constructor and Description |
|---|
ApiManagementInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
AMQuota |
getAmQuota() |
AMRateLimiter |
getAmRateLimiter() |
AMStatisticsCollector |
getAmStatisticsCollector() |
AuthorizationResult |
getAuthorization(Exchange exc,
String apiKey) |
String |
getConfig() |
Outcome |
handleRequest(Exchange exc) |
Outcome |
handleResponse(Exchange exc) |
void |
init(Router router) |
void |
setAmQuota(AMQuota amQuota) |
void |
setAmRateLimiter(AMRateLimiter amRateLimiter) |
void |
setAmStatisticsCollector(AMStatisticsCollector amStatisticsCollector) |
void |
setConfig(String config) |
getDisplayName, getFlow, getHelpId, getId, getLongDescription, getRouter, getRule, getShortDescription, handleAbort, init, setDisplayName, setFlow, setIdpublic static final String APPLICATION_JSON
public void init(Router router) throws Exception
init in interface Interceptorinit in class AbstractInterceptorExceptionpublic Outcome handleRequest(Exchange exc) throws Exception
handleRequest in interface InterceptorhandleRequest in class AbstractInterceptorExceptionpublic Outcome handleResponse(Exchange exc) throws Exception
handleResponse in interface InterceptorhandleResponse in class AbstractInterceptorExceptionpublic AuthorizationResult getAuthorization(Exchange exc, String apiKey)
public AMRateLimiter getAmRateLimiter()
public void setAmRateLimiter(AMRateLimiter amRateLimiter)
public AMQuota getAmQuota()
public void setAmQuota(AMQuota amQuota)
public String getConfig()
public void setConfig(String config)
public AMStatisticsCollector getAmStatisticsCollector()
public void setAmStatisticsCollector(AMStatisticsCollector amStatisticsCollector)
Copyright © 2021. All Rights Reserved.