Class Container<T>

java.lang.Object
io.jenkins.blueocean.rest.model.Container<T>
All Implemented Interfaces:
Pageable<T>, Reachable, Iterable<T>
Direct Known Subclasses:
BlueArtifactContainer, BlueFavoriteContainer, BlueOrganizationContainer, BluePipelineContainer, BluePipelineNodeContainer, BluePipelineStepContainer, BlueQueueContainer, BlueRunContainer, BlueTestResultContainer, BlueTrendContainer, BlueUserContainer, Containers.AbstractContainer

public abstract class Container<T> extends Object implements Pageable<T>, Reachable
Stapler-bound REST endpoint for a collection of objects.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • Container

      public Container()
  • Method Details

    • get

      public abstract T get(String name)
      Gets the individual member by its name
      Parameters:
      name - identifying the member
      Returns:
      individual member
    • getDynamic

      public final T getDynamic(String name)
    • iterator

      public Iterator<T> iterator(int start, int limit)
      Base implementation of pagination that is dumb.
      Specified by:
      iterator in interface Pageable<T>
      Parameters:
      start - starting index requested from collection
      limit - max number of item requested in the page
      Returns:
      filtered collection
    • list

      @WebMethod(name="") @GET public Pageable<T> list()
      When GET is requested on '/', serve the collection
      Returns:
      collection in this container