Class GenericResource<T>

java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.GenericResource<T>
All Implemented Interfaces:
Reachable

@ExportedBean public class GenericResource<T> extends Resource
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • GenericResource

      public GenericResource(T value)
    • GenericResource

      public GenericResource(T value, Reachable self)
  • Method Details

    • getState

      @Exported(merge=false) public Object getState()
      Description copied from class: Resource
      Returns the DTO object that gets databound to Json/XML etc. for state transfer
      Overrides:
      getState in class Resource
      Returns:
      DTO object
    • getDynamic

      public Object getDynamic(String token)
      Allows value to expose additional routes
      Parameters:
      token - route to look for in this value
      Returns:
      Object corresponding to given token
      Throws:
      io.jenkins.blueocean.commons.ServiceException.NotFoundException - if no route found
    • getLink

      public Link getLink()
      Returns:
      Gives Link to a reachable Resource or Container