Wso2 - handlers and sequence

For the manager of the WSi2 api, what is the difference or relationship between the handlers and the sequence.

I want to put some conditions for each api. Based on the condition, it checks whether the api request passed or not. I am not sure if I need to use a sequence or handlers.

+2
source share
1 answer

This answer assumes that by “sequence” the user means “mediation sequence”, which are launched through the APIManagerExtensionHandler (mediation can be global or per-API, but as far as I know, it runs in the same place).

- - , , . org.apache.synapse.rest.AbstractHandler, AbstractHandler.handleRequest AbstractHandler.handleResponse; org.apache.synapse.mediators.AbstractMediator AbstractMediator.mediate.

, , Java-, . ( WSO2 ESB), XML .

, . .

  • "per-API", API velocity-template.xml.
  • .
  • API. Java-.

  • API-.
  • , , ( ).
  • XML . ( WSO2 ESB) , - .

: - , ( ", ", , ). , , .

: : , . , ... .

+4

Source: https://habr.com/ru/post/1662004/


All Articles