Class SwaggerYamlProcessor
- java.lang.Object
-
- org.wso2.carbon.mediation.transport.handlers.requestprocessors.swagger.format.SwaggerGenerator
-
- org.wso2.carbon.mediation.transport.handlers.requestprocessors.swagger.format.SwaggerYamlProcessor
-
- All Implemented Interfaces:
org.wso2.carbon.core.transports.HttpGetRequestProcessor
public class SwaggerYamlProcessor extends SwaggerGenerator implements org.wso2.carbon.core.transports.HttpGetRequestProcessor
Provides Swagger definition for the API in YAML format.
-
-
Constructor Summary
Constructors Constructor Description SwaggerYamlProcessor()
-
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:
Exception
- if any exception occurred during definition generationorg.apache.axis2.AxisFault
-
-