Tabnine Logo
ResourceListing.getApis
Code IndexAdd Tabnine to your IDE (free)

How to use
getApis
method
in
org.restlet.ext.platform.internal.conversion.swagger.v1_2.model.ResourceListing

Best Java code snippets using org.restlet.ext.platform.internal.conversion.swagger.v1_2.model.ResourceListing.getApis (Showing top 20 results out of 315)

origin: org.restlet.jse/org.restlet.ext.platform

  /**
   * Indicates if the given resource listing and list of API declarations
   * match.
   * 
   * @param resourceListing
   *            The Swagger resource listing.
   * @param apiDeclarations
   *            The list of Swagger API declarations.
   * @throws org.restlet.ext.platform.internal.conversion.TranslationException
   */
  private static void validate(ResourceListing resourceListing,
      Map<String, ApiDeclaration> apiDeclarations)
      throws TranslationException {
    int rlSize = resourceListing.getApis().size();
    int adSize = apiDeclarations.size();
    if (rlSize < adSize) {
      throw new TranslationException("file",
          "Some API declarations are not mapped in your resource listing");
    } else if (rlSize > adSize) {
      throw new TranslationException("file",
          "Some API declarations are missing");
    }
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

  /**
   * Indicates if the given resource listing and list of API declarations
   * match.
   * 
   * @param resourceListing
   *            The Swagger resource listing.
   * @param apiDeclarations
   *            The list of Swagger API declarations.
   * @throws org.restlet.ext.platform.internal.conversion.TranslationException
   */
  private static void validate(ResourceListing resourceListing,
      Map<String, ApiDeclaration> apiDeclarations)
      throws TranslationException {
    int rlSize = resourceListing.getApis().size();
    int adSize = apiDeclarations.size();
    if (rlSize < adSize) {
      throw new TranslationException("file",
          "Some API declarations are not mapped in your resource listing");
    } else if (rlSize > adSize) {
      throw new TranslationException("file",
          "Some API declarations are missing");
    }
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

  /**
   * Indicates if the given resource listing and list of API declarations
   * match.
   * 
   * @param resourceListing
   *            The Swagger resource listing.
   * @param apiDeclarations
   *            The list of Swagger API declarations.
   * @throws org.restlet.ext.platform.internal.conversion.TranslationException
   */
  private static void validate(ResourceListing resourceListing,
      Map<String, ApiDeclaration> apiDeclarations)
      throws TranslationException {
    int rlSize = resourceListing.getApis().size();
    int adSize = apiDeclarations.size();
    if (rlSize < adSize) {
      throw new TranslationException("file",
          "Some API declarations are not mapped in your resource listing");
    } else if (rlSize > adSize) {
      throw new TranslationException("file",
          "Some API declarations are missing");
    }
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

  /**
   * Indicates if the given resource listing and list of API declarations
   * match.
   * 
   * @param resourceListing
   *            The Swagger resource listing.
   * @param apiDeclarations
   *            The list of Swagger API declarations.
   * @throws org.restlet.ext.platform.internal.conversion.TranslationException
   */
  private static void validate(ResourceListing resourceListing,
      Map<String, ApiDeclaration> apiDeclarations)
      throws TranslationException {
    int rlSize = resourceListing.getApis().size();
    int adSize = apiDeclarations.size();
    if (rlSize < adSize) {
      throw new TranslationException("file",
          "Some API declarations are not mapped in your resource listing");
    } else if (rlSize > adSize) {
      throw new TranslationException("file",
          "Some API declarations are missing");
    }
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

LOGGER.log(Level.FINE, "Reading file: " + swaggerUrl);
resourceListing = ImportUtils.getAndDeserialize(swaggerUrl, userName, password, ResourceListing.class);
for (ResourceListingApi api : resourceListing.getApis()) {
  LOGGER.log(Level.FINE,
      "Reading file: " + swaggerUrl + api.getPath());
  String basePath = resourceListingFile.getParent();
  LOGGER.log(Level.FINE, "Base path: " + basePath);
  for (ResourceListingApi api : resourceListing.getApis()) {
    LOGGER.log(Level.FINE,
        "Reading file " + basePath + api.getPath());
origin: org.restlet.jee/org.restlet.ext.platform

LOGGER.log(Level.FINE, "Reading file: " + swaggerUrl);
resourceListing = ImportUtils.getAndDeserialize(swaggerUrl, userName, password, ResourceListing.class);
for (ResourceListingApi api : resourceListing.getApis()) {
  LOGGER.log(Level.FINE,
      "Reading file: " + swaggerUrl + api.getPath());
  String basePath = resourceListingFile.getParent();
  LOGGER.log(Level.FINE, "Base path: " + basePath);
  for (ResourceListingApi api : resourceListing.getApis()) {
    LOGGER.log(Level.FINE,
        "Reading file " + basePath + api.getPath());
origin: org.restlet.jse/org.restlet.ext.platform

LOGGER.log(Level.FINE, "Reading file: " + swaggerUrl);
resourceListing = ImportUtils.getAndDeserialize(swaggerUrl, userName, password, ResourceListing.class);
for (ResourceListingApi api : resourceListing.getApis()) {
  LOGGER.log(Level.FINE,
      "Reading file: " + swaggerUrl + api.getPath());
  String basePath = resourceListingFile.getParent();
  LOGGER.log(Level.FINE, "Base path: " + basePath);
  for (ResourceListingApi api : resourceListing.getApis()) {
    LOGGER.log(Level.FINE,
        "Reading file " + basePath + api.getPath());
origin: org.restlet.gae/org.restlet.ext.platform

LOGGER.log(Level.FINE, "Reading file: " + swaggerUrl);
resourceListing = ImportUtils.getAndDeserialize(swaggerUrl, userName, password, ResourceListing.class);
for (ResourceListingApi api : resourceListing.getApis()) {
  LOGGER.log(Level.FINE,
      "Reading file: " + swaggerUrl + api.getPath());
  String basePath = resourceListingFile.getParent();
  LOGGER.log(Level.FINE, "Base path: " + basePath);
  for (ResourceListingApi api : resourceListing.getApis()) {
    LOGGER.log(Level.FINE,
        "Reading file " + basePath + api.getPath());
origin: org.restlet.jee/org.restlet.ext.platform

private static void fillSections(Contract contract, ResourceListing listing) {
  for (ResourceListingApi api : listing.getApis()) {
    Section section = new Section();
    String sectionName = SwaggerUtils.computeSectionName(api.getPath());
    section.setName(sectionName);
    section.setDescription(api.getDescription());
    contract.getSections().add(section);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

private static void fillSections(Contract contract, ResourceListing listing) {
  for (ResourceListingApi api : listing.getApis()) {
    Section section = new Section();
    String sectionName = SwaggerUtils.computeSectionName(api.getPath());
    section.setName(sectionName);
    section.setDescription(api.getDescription());
    contract.getSections().add(section);
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

private static void fillSections(Contract contract, ResourceListing listing) {
  for (ResourceListingApi api : listing.getApis()) {
    Section section = new Section();
    String sectionName = SwaggerUtils.computeSectionName(api.getPath());
    section.setName(sectionName);
    section.setDescription(api.getDescription());
    contract.getSections().add(section);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

private static void fillSections(Contract contract, ResourceListing listing) {
  for (ResourceListingApi api : listing.getApis()) {
    Section section = new Section();
    String sectionName = SwaggerUtils.computeSectionName(api.getPath());
    section.setName(sectionName);
    section.setDescription(api.getDescription());
    contract.getSections().add(section);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

      if (!addedApis.contains(rd.getPath())) {
        addedApis.add(rd.getPath());
        listing.getApis().add(rd);
        if (!addedApis.contains(rd.getPath())) {
          addedApis.add(rd.getPath());
          listing.getApis().add(rd);
Collections.sort(listing.getApis(),
    new Comparator<ResourceListingApi>() {
      @Override
origin: org.restlet.jee/org.restlet.ext.platform

      if (!addedApis.contains(rd.getPath())) {
        addedApis.add(rd.getPath());
        listing.getApis().add(rd);
        if (!addedApis.contains(rd.getPath())) {
          addedApis.add(rd.getPath());
          listing.getApis().add(rd);
Collections.sort(listing.getApis(),
    new Comparator<ResourceListingApi>() {
      @Override
origin: org.restlet.jse/org.restlet.ext.platform

      if (!addedApis.contains(rd.getPath())) {
        addedApis.add(rd.getPath());
        listing.getApis().add(rd);
        if (!addedApis.contains(rd.getPath())) {
          addedApis.add(rd.getPath());
          listing.getApis().add(rd);
Collections.sort(listing.getApis(),
    new Comparator<ResourceListingApi>() {
      @Override
origin: org.restlet.gae/org.restlet.ext.platform

      if (!addedApis.contains(rd.getPath())) {
        addedApis.add(rd.getPath());
        listing.getApis().add(rd);
        if (!addedApis.contains(rd.getPath())) {
          addedApis.add(rd.getPath());
          listing.getApis().add(rd);
Collections.sort(listing.getApis(),
    new Comparator<ResourceListingApi>() {
      @Override
origin: org.restlet.osgi/org.restlet.ext.platform

List<ResourceListingApi> apis = listing.getApis();
if (apis != null && !apis.isEmpty()) {
  String key = apis.get(0).getPath();
origin: org.restlet.jee/org.restlet.ext.platform

List<ResourceListingApi> apis = listing.getApis();
if (apis != null && !apis.isEmpty()) {
  String key = apis.get(0).getPath();
origin: org.restlet.gae/org.restlet.ext.platform

List<ResourceListingApi> apis = listing.getApis();
if (apis != null && !apis.isEmpty()) {
  String key = apis.get(0).getPath();
origin: org.restlet.jse/org.restlet.ext.platform

List<ResourceListingApi> apis = listing.getApis();
if (apis != null && !apis.isEmpty()) {
  String key = apis.get(0).getPath();
org.restlet.ext.platform.internal.conversion.swagger.v1_2.modelResourceListinggetApis

Popular methods of ResourceListing

  • <init>
  • getApi
  • getApiVersion
  • getAuthorizations
  • getInfo
  • setApiVersion
  • setApis
  • setAuthorizations
  • setInfo
  • setSwaggerVersion

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • startActivity (Activity)
  • requestLocationUpdates (LocationManager)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JButton (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Vim 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