Возможно ли иметь несколько перехватчиков на ресурсе в WG2 microgateway 3.1.0? - PullRequest
0 голосов
/ 08 апреля 2020

Я пытаюсь иметь несколько 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 Ответ

2 голосов
/ 09 апреля 2020

Несколько перехватчиков не поддерживаются. Можно ли написать первый перехватчик для вызова второго перехватчика. Тогда многократные перехватчики не потребуются.

...