@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String ctxId = getContextIdFromServletConfig(getServletConfig()); OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId); OpenAPI oas = ctx.read();
@Override public void init(ServletConfig config) throws ServletException { super.init(config); String ctxId = getContextIdFromServletConfig(config); try { new ServletOpenApiContextBuilder() .servletConfig(config) .ctxId(ctxId) .buildContext(true); } catch (OpenApiConfigurationException e) { e.printStackTrace(); } }
String type) throws Exception { String ctxId = getContextIdFromServletConfig(config); OpenApiContext ctx = new JaxrsOpenApiContextBuilder() .servletConfig(config)
private OpenApiContext getOpenApiContext(ServletConfig config) { final String ctxId = ServletConfigContextUtils.getContextIdFromServletConfig(config); return OpenApiContextLocator.getInstance().getOpenApiContext(ctxId); } }
private OpenApiContext getOpenApiContext(ServletConfig config) { final String ctxId = ServletConfigContextUtils.getContextIdFromServletConfig(config); return OpenApiContextLocator.getInstance().getOpenApiContext(ctxId); } }
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String ctxId = getContextIdFromServletConfig(getServletConfig()); OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId); OpenAPI oas = ctx.read();
@Override public void init(ServletConfig config) throws ServletException { super.init(config); String ctxId = getContextIdFromServletConfig(config); try { new ServletOpenApiContextBuilder() .servletConfig(config) .ctxId(ctxId) .buildContext(true); } catch (OpenApiConfigurationException e) { e.printStackTrace(); } }
String type) throws Exception { String ctxId = getContextIdFromServletConfig(config); OpenApiContext ctx = new JaxrsOpenApiContextBuilder() .servletConfig(config)