Class SwaggerJsonProcessor
- java.lang.Object
-
- org.wso2.carbon.mediation.transport.handlers.requestprocessors.swagger.format.SwaggerGenerator
-
- org.wso2.carbon.mediation.transport.handlers.requestprocessors.swagger.format.SwaggerJsonProcessor
-
- All Implemented Interfaces:
org.wso2.carbon.core.transports.HttpGetRequestProcessor
public class SwaggerJsonProcessor extends SwaggerGenerator implements org.wso2.carbon.core.transports.HttpGetRequestProcessor
Provides Swagger definition for the API in JSON format.
-
-
Constructor Summary
Constructors Constructor Description SwaggerJsonProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(org.wso2.carbon.core.transports.CarbonHttpRequest request, org.wso2.carbon.core.transports.CarbonHttpResponse response, org.apache.axis2.context.ConfigurationContext configurationContext)
Process incoming GET request and update the response with the swagger definition for the requested API-
Methods inherited from class org.wso2.carbon.mediation.transport.handlers.requestprocessors.swagger.format.SwaggerGenerator
getAPIFromSynapseConfig, getApiNameFromRequestUri, handleException, retrieveAPISwaggerFromRegistry, updateResponse
-
-
-
-
Method Detail
-
process
public void process(org.wso2.carbon.core.transports.CarbonHttpRequest request, org.wso2.carbon.core.transports.CarbonHttpResponse response, org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault
Process incoming GET request and update the response with the swagger definition for the requested API- Specified by:
process
in interfaceorg.wso2.carbon.core.transports.HttpGetRequestProcessor
- Parameters:
request
- CarbonHttpRequest contains request informationresponse
- CarbonHttpResponse which will be updated with response informationconfigurationContext
- axis2 configuration context- Throws:
org.apache.axis2.AxisFault
- exception occurred during definition generation
-
-