This documentation is for WSO2 API Manager 2.1.0. View documentation for the latest release.

All docs This doc
Skip to end of metadata
Go to start of metadata

The Gateway of an API Manager deployment is responsible for the main business funtionality of serving API traffic. The following diagram illustrates the message flow in the Gateway at a very high level. 

The Handlers

The handlers are request and response interceptors. The list of API handlers in APIM 2.1.0 are as follows:

  • APIMgtLatencyStatsHandler
  • CORSRequestHandler
  • APIAuthenticationHandler
  • ThrottleHandler
  • APIMgtUsageHandler
  • APIMgtGoogleAnalyticsTrackingHandler
  • APIManagerExtensionHandler

Each Handler performs a specific task which is mentioned in the table below. Note that some handlers are functional both at the inflow and outflow of messages.

APIMgtLatencyStatsHandlerPublish request and response latencies, if analytics is enabledPublish request and response latencies, if analytics is enabled
CORSRequestHandlerSet CORS HeadersSet CORS Headers
APIAuthenticationHandlerrequest authenticationN/A
ThrottleHandlerrequest throttlingN/A
APIMgtUsageHandlerpublish request data, if analytics is enabledN/A
APIMgtGoogleAnalyticsTrackingHandlerpublish data to Google Analytics, if Google Analytics is configuredN/A
APIManagerExtensionHandlerexecute custom mediation sequences at inflowexecute custom mediation sequences at outflow

Mediation Extensions

Mediation extensions are the custom mediation logic that can be executed in either inflow or the outflow. For more details on how to configure mediation extensions, see Adding Mediation Extensions

In Sequence and Out Sequence 

In sequence and the out sequence carry the mail business logic of the request flow. In sequence handles sending the request from the client to the backend, and the out sequence routes the response sent from the backed to the client. 

  • No labels