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

      • SwaggerJsonProcessor

        public SwaggerJsonProcessor()
    • 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:
        org.apache.axis2.AxisFault - exception occurred during definition generation