Class Resource

java.lang.Object
io.jenkins.blueocean.rest.model.Resource
All Implemented Interfaces:
Reachable
Direct Known Subclasses:
BlueActionProxy, BlueArtifact, BlueChangeSetEntry, BlueExtensionClass, BlueExtensionClassMap, BlueFavorite, BlueIcon, BlueInputStep, BlueOrganization, BluePipeline, BluePipelineScm, BluePipelineStep, BlueQueueItem, BlueRun, BlueTestResult, BlueTestSummary, BlueTrend, BlueUser, GenericResource, GenericResource.PrimitiveTypeResource

@ExportedBean public abstract class Resource extends Object implements Reachable
Stapler-bound object that defines REST endpoint.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • Resource

      public Resource()
  • Method Details

    • getState

      @WebMethod(name="") @GET public Object getState()
      Returns the DTO object that gets databound to Json/XML etc. for state transfer
      Returns:
      DTO object
    • getLinks

      @Exported(name="_links", visibility=9999) public Links getLinks()
      Links to all resources available in the context of this resource
      Returns:
      Links object