Tabnine Logo
GenericOpenApiContextBuilder.buildContext
Code IndexAdd Tabnine to your IDE (free)

How to use
buildContext
method
in
io.swagger.v3.oas.integration.GenericOpenApiContextBuilder

Best Java code snippets using io.swagger.v3.oas.integration.GenericOpenApiContextBuilder.buildContext (Showing top 11 results out of 315)

origin: swagger-api/swagger-core

public void onStartup(Set<Class<?>> classes, ServletContext servletContext) throws ServletException {
  if (classes != null && classes.size() != 0) {
    Set<Class<?>> resources = new LinkedHashSet();
    classes.stream()
        .filter(c -> ignored.stream().noneMatch(i -> c.getName().startsWith(i)))
        .forEach(resources::add);
    if (!resources.isEmpty()) {
      // init context
      try {
        SwaggerConfiguration oasConfig = new SwaggerConfiguration()
            .resourceClasses(resources.stream().map(c -> c.getName()).collect(Collectors.toSet()));
        new JaxrsOpenApiContextBuilder()
            .openApiConfiguration(oasConfig)
            .buildContext(true);
      } catch (OpenApiConfigurationException e) {
        throw new RuntimeException(e.getMessage(), e);
      }
    }
  }
}
origin: swagger-api/swagger-core

@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();
  }
}
origin: swagger-api/swagger-core

  .buildContext(true)
  .read();
String openapiJson = null;
origin: swagger-api/swagger-core

    .openApiConfiguration(openApiConfiguration)
    .ctxId(ctxId)
    .buildContext(true);
OpenAPI oas = ctx.read();
boolean pretty = false;
origin: swagger-api/swagger-core

    .buildContext(true)
    .read();
String openapiJson = null;
origin: io.swagger.core.v3/swagger-jaxrs2

@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();
  }
}
origin: io.swagger.core.v3/swagger-jaxrs2

  .buildContext(true)
  .read();
String openapiJson = null;
origin: io.swagger.core.v3/swagger-jaxrs2

    .openApiConfiguration(openApiConfiguration)
    .ctxId(ctxId)
    .buildContext(true);
OpenAPI oas = ctx.read();
boolean pretty = false;
origin: org.mycore/mycore-restapi

    .application(getApplication())
    .openApiConfiguration(oasConfig)
    .buildContext(true);
} catch (OpenApiConfigurationException e) {
  throw new InternalServerErrorException(e);
origin: org.apache.cxf/cxf-rt-rs-service-description-openapi-v3

final OpenApiContext context = openApiConfiguration.buildContext(true);
final Properties userProperties = getUserProperties(
  context
origin: apache/cxf

final OpenApiContext context = openApiConfiguration.buildContext(true);
final Properties userProperties = getUserProperties(
  context
io.swagger.v3.oas.integrationGenericOpenApiContextBuilderbuildContext

Popular methods of GenericOpenApiContextBuilder

  • ctxId
  • configLocation
  • openApiConfiguration

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now