Class PipelineApi

All Implemented Interfaces:
ModelObject, SearchableModelObject, SearchItem

public class PipelineApi extends Api
The view's api/json, which the page polls. The JSON is exported once per cached model and viewer and served with an ETag made of the model's version and the viewer; a poll that sends it back and finds the model unchanged is answered with 304 Not Modified and no body. Only the server time is written afresh into every response. Requests with Stapler's own parameters (tree, depth, pretty, ...) are exported on the spot as any api/json is. Responses must never be served from an HTTP cache.
  • Constructor Details

  • Method Details

    • doJson

      public void doJson(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException
      A read of the view's model, hence GET and no POST protection; the view's read permission is checked.
      Overrides:
      doJson in class Api
      Throws:
      IOException
      jakarta.servlet.ServletException