Class 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 Detail

      • SwaggerYamlProcessor

        public SwaggerYamlProcessor()
    • 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 interface org.wso2.carbon.core.transports.HttpGetRequestProcessor
        Parameters:
        request - CarbonHttpRequest contains request information
        response - CarbonHttpResponse which will be updated with response information
        configurationContext - axis2 configuration context
        Throws:
        Exception - if any exception occurred during definition generation
        org.apache.axis2.AxisFault