WSO2微网关3.1.0中的资源上是否可以有多个拦截器?

时间:2020-04-08 13:43:56

标签: wso2 wso2-am wso2-mgw

我正在尝试在一个资源上使用多个Java拦截器。仅最后一个拦截器被调用。 是否支持资源上的多个拦截器?

paths:
  /public/rt/PING:
    get:
      description: ""
      operationId: PING
      x-wso2-disable-security: true
      x-wso2-throttling-tier: 6PerMin
      x-wso2-request-interceptor: java:org.mgw.interceptor.IDSAuthInterceptor
      x-wso2-request-interceptor: java:org.mgw.interceptor.IPFilterInterceptor
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PING"
            application/xml:
              schema:
                $ref: "#/components/schemas/PING"
      security:
        - basicAuthentication: []

1 个答案:

答案 0 :(得分:2)

不支持多个拦截器。是否可以编写第一个拦截器来调用第二个拦截器。这样就不需要多个拦截器。