Package com.github.kongchen.swagger.docgen

Examples of com.github.kongchen.swagger.docgen.GenerateException


            FilterFactory$ filterFactory = FilterFactory$.MODULE$;
            try {
                LOG.info("Setting filter configuration: " + apiSource.getSwaggerInternalFilter());
                filterFactory.filter_$eq((SwaggerSpecFilter) Class.forName(apiSource.getSwaggerInternalFilter()).newInstance());
            } catch (Exception e) {
                throw new GenerateException("Cannot load: " + apiSource.getSwaggerInternalFilter(), e);
            }
        }

        List<AuthorizationType> authorizationTypes = new ArrayList<AuthorizationType>();
        for (Class c : apiSource.getValidClasses()) {
            ApiListing doc;
            try {
                doc = getDocFromClass(c, swaggerConfig, getBasePath());
            } catch (Exception e) {
                throw new GenerateException(e);
            }
            if (doc == null) continue;
            LOG.info("Detect Resource:" + c.getName());

            Buffer<AuthorizationType> buffer = doc.authorizations().toBuffer();
View Full Code Here


    if (apiSource.getSwaggerApiReader() == null) return new DefaultJaxrsApiReader();
    try {
      LOG.info("Reading api reader configuration: " + apiSource.getSwaggerApiReader());
      return (ClassReader) Class.forName(apiSource.getSwaggerApiReader()).newInstance();
    } catch (Exception e) {
      throw new GenerateException("Cannot load swagger api reader: "
          + apiSource.getSwaggerApiReader(), e);
    }
  }
View Full Code Here

TOP

Related Classes of com.github.kongchen.swagger.docgen.GenerateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.