Tabnine Logo
JaxrsOpenApiContextBuilder.openApiConfiguration
Code IndexAdd Tabnine to your IDE (free)

How to use
openApiConfiguration
method
in
io.swagger.v3.jaxrs2.integration.JaxrsOpenApiContextBuilder

Best Java code snippets using io.swagger.v3.jaxrs2.integration.JaxrsOpenApiContextBuilder.openApiConfiguration (Showing top 7 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

try {
  GenericOpenApiContextBuilder builder = new JaxrsOpenApiContextBuilder()
      .openApiConfiguration(config);
  if (StringUtils.isNotBlank(contextId)) {
    builder.ctxId(contextId);
origin: swagger-api/swagger-core

try {
  GenericOpenApiContextBuilder builder = new JaxrsOpenApiContextBuilder()
      .openApiConfiguration(config);
  if (StringUtils.isNotBlank(contextId)) {
    builder.ctxId(contextId);
origin: io.swagger.core.v3/swagger-jaxrs2

try {
  GenericOpenApiContextBuilder builder = new JaxrsOpenApiContextBuilder()
      .openApiConfiguration(config);
  if (StringUtils.isNotBlank(contextId)) {
    builder.ctxId(contextId);
origin: org.mycore/mycore-restapi

  new JaxrsOpenApiContextBuilder()
    .application(getApplication())
    .openApiConfiguration(oasConfig)
    .buildContext(true);
} catch (OpenApiConfigurationException e) {
origin: apache/cxf

.openApiConfiguration(config)
origin: org.apache.cxf/cxf-rt-rs-service-description-openapi-v3

.openApiConfiguration(config)
io.swagger.v3.jaxrs2.integrationJaxrsOpenApiContextBuilderopenApiConfiguration

Popular methods of JaxrsOpenApiContextBuilder

  • <init>
  • application
  • configLocation
  • resourcePackages
  • servletConfig

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Collectors (java.util.stream)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
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