Skip to content

Commit

Permalink
Merge pull request #3712 from swagger-api/ticket-3711
Browse files Browse the repository at this point in the history
refs #3711 - expose ctxId resolving in BaseOpenApiResource
  • Loading branch information
frantuma authored Oct 1, 2020
2 parents 405d02b + 3cbc8cf commit 4f30e3e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ public abstract class BaseOpenApiResource {

private static Logger LOGGER = LoggerFactory.getLogger(BaseOpenApiResource.class);

protected String getContextId(ServletConfig config) {
return getContextIdFromServletConfig(config);
}

protected Response getOpenApi(HttpHeaders headers,
ServletConfig config,
Application app,
UriInfo uriInfo,
String type) throws Exception {

String ctxId = getContextIdFromServletConfig(config);
String ctxId = getContextId(config);
OpenApiContext ctx = new JaxrsOpenApiContextBuilder()
.servletConfig(config)
.application(app)
Expand Down

0 comments on commit 4f30e3e

Please sign in to comment.