congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GenericOpenApiContext.id
Code IndexAdd Tabnine to your IDE (free)

How to use
id
method
in
io.swagger.v3.oas.integration.GenericOpenApiContext

Best Java code snippets using io.swagger.v3.oas.integration.GenericOpenApiContext.id (Showing top 6 results out of 315)

origin: swagger-api/swagger-core

@Override
public OpenApiContext buildContext(boolean init) throws OpenApiConfigurationException {
  if (StringUtils.isBlank(ctxId)) {
    ctxId = OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT;
  }
  OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId);
  if (ctx == null) {
    OpenApiContext rootCtx = OpenApiContextLocator.getInstance().getOpenApiContext(OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT);
    ctx = new GenericOpenApiContext()
        .openApiConfiguration(openApiConfiguration)
        .id(ctxId)
        .parent(rootCtx);
    if (ctx.getConfigLocation() == null && configLocation != null) {
      ((GenericOpenApiContext) ctx).configLocation(configLocation);
    }
    if (((GenericOpenApiContext) ctx).getResourcePackages() == null && resourcePackages != null) {
      ((GenericOpenApiContext) ctx).resourcePackages(resourcePackages);
    }
    if (((GenericOpenApiContext) ctx).getResourceClasses() == null && resourceClasses != null) {
      ((GenericOpenApiContext) ctx).resourceClasses(resourceClasses);
    }
    if (init) {
      ctx.init(); // includes registering itself with OpenApiContextLocator
    }
  }
  return ctx;
}
origin: swagger-api/swagger-core

@Override
public OpenApiContext buildContext(boolean init) throws OpenApiConfigurationException {
  if (StringUtils.isBlank(ctxId)) {
    ctxId = OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT;
  }
  OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId);
  if (ctx == null) {
    OpenApiContext rootCtx = OpenApiContextLocator.getInstance().getOpenApiContext(OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT);
    ctx = new XmlWebOpenApiContext()
        .servletConfig(servletConfig)
        .openApiConfiguration(openApiConfiguration)
        .id(ctxId)
        .parent(rootCtx);
    if (ctx.getConfigLocation() == null && configLocation != null) {
      ((XmlWebOpenApiContext) ctx).configLocation(configLocation);
    }
    if (((XmlWebOpenApiContext) ctx).getResourcePackages() == null && resourcePackages != null) {
      ((XmlWebOpenApiContext) ctx).resourcePackages(resourcePackages);
    }
    if (((XmlWebOpenApiContext) ctx).getResourceClasses() == null && resourceClasses != null) {
      ((XmlWebOpenApiContext) ctx).resourceClasses(resourceClasses);
    }
    if (init) {
      ctx.init(); // includes registering itself with OpenApiContextLocator
    }
  }
  return ctx;
}
origin: swagger-api/swagger-core

@Override
public OpenApiContext buildContext(boolean init) throws OpenApiConfigurationException {
  if (StringUtils.isBlank(ctxId)) {
    ctxId = OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT;
  }
  OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId);
  if (ctx == null) {
    OpenApiContext rootCtx = OpenApiContextLocator.getInstance().getOpenApiContext(OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT);
    ctx = new XmlWebOpenApiContext()
        .servletConfig(servletConfig)
        .app(application)
        .openApiConfiguration(openApiConfiguration)
        .id(ctxId)
        .parent(rootCtx);
    if (ctx.getConfigLocation() == null && configLocation != null) {
      ((XmlWebOpenApiContext) ctx).configLocation(configLocation);
    }
    if (((XmlWebOpenApiContext) ctx).getResourcePackages() == null && resourcePackages != null) {
      ((XmlWebOpenApiContext) ctx).resourcePackages(resourcePackages);
    }
    if (((XmlWebOpenApiContext) ctx).getResourceClasses() == null && resourceClasses != null) {
      ((XmlWebOpenApiContext) ctx).resourceClasses(resourceClasses);
    }
    if (init) {
      ctx.init(); // includes registering itself with OpenApiContextLocator
    }
  }
  return ctx;
}
origin: io.swagger.core.v3/swagger-integration

@Override
public OpenApiContext buildContext(boolean init) throws OpenApiConfigurationException {
  if (StringUtils.isBlank(ctxId)) {
    ctxId = OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT;
  }
  OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId);
  if (ctx == null) {
    OpenApiContext rootCtx = OpenApiContextLocator.getInstance().getOpenApiContext(OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT);
    ctx = new GenericOpenApiContext()
        .openApiConfiguration(openApiConfiguration)
        .id(ctxId)
        .parent(rootCtx);
    if (ctx.getConfigLocation() == null && configLocation != null) {
      ((GenericOpenApiContext) ctx).configLocation(configLocation);
    }
    if (((GenericOpenApiContext) ctx).getResourcePackages() == null && resourcePackages != null) {
      ((GenericOpenApiContext) ctx).resourcePackages(resourcePackages);
    }
    if (((GenericOpenApiContext) ctx).getResourceClasses() == null && resourceClasses != null) {
      ((GenericOpenApiContext) ctx).resourceClasses(resourceClasses);
    }
    if (init) {
      ctx.init(); // includes registering itself with OpenApiContextLocator
    }
  }
  return ctx;
}
origin: io.swagger.core.v3/swagger-jaxrs2

@Override
public OpenApiContext buildContext(boolean init) throws OpenApiConfigurationException {
  if (StringUtils.isBlank(ctxId)) {
    ctxId = OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT;
  }
  OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId);
  if (ctx == null) {
    OpenApiContext rootCtx = OpenApiContextLocator.getInstance().getOpenApiContext(OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT);
    ctx = new XmlWebOpenApiContext()
        .servletConfig(servletConfig)
        .openApiConfiguration(openApiConfiguration)
        .id(ctxId)
        .parent(rootCtx);
    if (ctx.getConfigLocation() == null && configLocation != null) {
      ((XmlWebOpenApiContext) ctx).configLocation(configLocation);
    }
    if (((XmlWebOpenApiContext) ctx).getResourcePackages() == null && resourcePackages != null) {
      ((XmlWebOpenApiContext) ctx).resourcePackages(resourcePackages);
    }
    if (((XmlWebOpenApiContext) ctx).getResourceClasses() == null && resourceClasses != null) {
      ((XmlWebOpenApiContext) ctx).resourceClasses(resourceClasses);
    }
    if (init) {
      ctx.init(); // includes registering itself with OpenApiContextLocator
    }
  }
  return ctx;
}
origin: io.swagger.core.v3/swagger-jaxrs2

@Override
public OpenApiContext buildContext(boolean init) throws OpenApiConfigurationException {
  if (StringUtils.isBlank(ctxId)) {
    ctxId = OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT;
  }
  OpenApiContext ctx = OpenApiContextLocator.getInstance().getOpenApiContext(ctxId);
  if (ctx == null) {
    OpenApiContext rootCtx = OpenApiContextLocator.getInstance().getOpenApiContext(OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT);
    ctx = new XmlWebOpenApiContext()
        .servletConfig(servletConfig)
        .app(application)
        .openApiConfiguration(openApiConfiguration)
        .id(ctxId)
        .parent(rootCtx);
    if (ctx.getConfigLocation() == null && configLocation != null) {
      ((XmlWebOpenApiContext) ctx).configLocation(configLocation);
    }
    if (((XmlWebOpenApiContext) ctx).getResourcePackages() == null && resourcePackages != null) {
      ((XmlWebOpenApiContext) ctx).resourcePackages(resourcePackages);
    }
    if (((XmlWebOpenApiContext) ctx).getResourceClasses() == null && resourceClasses != null) {
      ((XmlWebOpenApiContext) ctx).resourceClasses(resourceClasses);
    }
    if (init) {
      ctx.init(); // includes registering itself with OpenApiContextLocator
    }
  }
  return ctx;
}
io.swagger.v3.oas.integrationGenericOpenApiContextid

Popular methods of GenericOpenApiContext

  • <init>
  • getOpenApiReader
  • openApiConfiguration
  • parent
  • buildModelConverters
  • buildObjectMapperProcessor
  • buildReader
  • buildScanner
  • configLocation
  • getKnownLocations
  • getLocationLoaders
  • getOpenApiScanner
  • getLocationLoaders,
  • getOpenApiScanner,
  • getResourceClasses,
  • getResourcePackages,
  • init,
  • loadConfiguration,
  • mergeParentConfiguration,
  • openApiReader,
  • openApiScanner

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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