Tabnine Logo
org.restlet.ext.platform.internal.model
Code IndexAdd Tabnine to your IDE (free)

How to use org.restlet.ext.platform.internal.model

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

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

public Response getResponse(int code) {
  for (Response result : getResponses()) {
    if (code == result.getCode()) {
      return result;
    }
  }
  return null;
}
origin: org.restlet.jee/org.restlet.ext.platform

public void addSections(Collection<String> sections) {
  if (sections == null) {
    return;
  }
  for (String section : sections) {
    addSection(section);
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

  @Override
  public boolean apply(Response response) {
    return response.getCode() == code;
  }
});
origin: org.restlet.jee/org.restlet.ext.platform

  private void addSectionsToProperties(Set<String> processedRepresentations, Contract contract) {
    for (Property property : properties) {
      Representation representation = contract.getRepresentation(property.getType());
      if (representation != null
          && !processedRepresentations.contains(representation.getName())) {
        representation.addSections(sections);
        processedRepresentations.add(representation.getName());
        representation.addSectionsToProperties(processedRepresentations, contract);
      }
    }
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

public void addProduces(List<String> produces) {
  if (produces == null) {
    return;
  }
  for (String mediaType : produces) {
    addProduces(mediaType);
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

public void addConsumes(List<String> consumes) {
  if (consumes == null) {
    return;
  }
  for (String mediaType : consumes) {
    addConsumes(mediaType);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

  public void addSections(Collection<String> sections) {
    if (sections == null) {
      return;
    }

    for (String section : sections) {
      addSection(section);
    }
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

  private void addSectionsToProperties(Set<String> processedRepresentations, Contract contract) {
    for (Property property : properties) {
      Representation representation = contract.getRepresentation(property.getType());
      if (representation != null
          && !processedRepresentations.contains(representation.getName())) {
        representation.addSections(sections);
        processedRepresentations.add(representation.getName());
        representation.addSectionsToProperties(processedRepresentations, contract);
      }
    }
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

public Response getResponse(int code) {
  for (Response result : getResponses()) {
    if (code == result.getCode()) {
      return result;
    }
  }
  return null;
}
origin: org.restlet.gae/org.restlet.ext.platform

public void addSections(Collection<String> sections) {
  if (sections == null) {
    return;
  }
  for (String section : sections) {
    addSection(section);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

  @Override
  public boolean apply(Response response) {
    return response.getCode() == code;
  }
});
origin: org.restlet.jse/org.restlet.ext.platform

public void addProduces(List<String> produces) {
  if (produces == null) {
    return;
  }
  for (String mediaType : produces) {
    addProduces(mediaType);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

public void addConsumes(List<String> consumes) {
  if (consumes == null) {
    return;
  }
  for (String mediaType : consumes) {
    addConsumes(mediaType);
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

  private void addSectionsToProperties(Set<String> processedRepresentations, Contract contract) {
    for (Property property : properties) {
      Representation representation = contract.getRepresentation(property.getType());
      if (representation != null
          && !processedRepresentations.contains(representation.getName())) {
        representation.addSections(sections);
        processedRepresentations.add(representation.getName());
        representation.addSectionsToProperties(processedRepresentations, contract);
      }
    }
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

public Response getResponse(int code) {
  for (Response result : getResponses()) {
    if (code == result.getCode()) {
      return result;
    }
  }
  return null;
}
origin: org.restlet.osgi/org.restlet.ext.platform

public void addSections(Collection<String> sections) {
  if (sections == null) {
    return;
  }
  for (String section : sections) {
    addSection(section);
  }
}
origin: org.restlet.jse/org.restlet.ext.platform

  @Override
  public boolean apply(Response response) {
    return response.getCode() == code;
  }
});
origin: org.restlet.jee/org.restlet.ext.platform

public void addProduces(List<String> produces) {
  if (produces == null) {
    return;
  }
  for (String mediaType : produces) {
    addProduces(mediaType);
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

  private void addSectionsToProperties(Set<String> processedRepresentations, Contract contract) {
    for (Property property : properties) {
      Representation representation = contract.getRepresentation(property.getType());
      if (representation != null
          && !processedRepresentations.contains(representation.getName())) {
        representation.addSections(sections);
        processedRepresentations.add(representation.getName());
        representation.addSectionsToProperties(processedRepresentations, contract);
      }
    }
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

public Response getResponse(int code) {
  for (Response result : getResponses()) {
    if (code == result.getCode()) {
      return result;
    }
  }
  return null;
}
org.restlet.ext.platform.internal.model

Most used classes

  • Contact
    Represents the contact of the person responsible for the Web API
  • Contract
    Represents the contract of a Web API. Contains the representations and resources sorted in sections.
  • Definition
    Represents a Web API
  • Endpoint
    Represents a Web API endpoint. Declares the authentication protocol associated
  • Header
    Represents an HTTP header.
  • Operation,
  • PathVariable,
  • PayLoad,
  • Property,
  • QueryParameter,
  • Representation,
  • Resource,
  • Response,
  • Section
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