Class RemoteResultJsonApi

java.lang.Object
io.jenkins.plugins.remote.result.trigger.RemoteResultJsonApi
All Implemented Interfaces:
ExtensionPoint, Action, ModelObject, RootAction

@Extension public class RemoteResultJsonApi extends Object implements RootAction
Author:
heweisc@dingtalk.com
  • Constructor Details

    • RemoteResultJsonApi

      public RemoteResultJsonApi()
  • Method Details

    • getIconFileName

      public String getIconFileName()
      Since there is no HTML/Jelly rendering, no icons are needed.
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Since there is no HTML/Jelly rendering, no display name is needed.
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      getUrlName() is the root of the JSON API. Each WebMethod in the class is prefixed by this.
      Specified by:
      getUrlName in interface Action
    • getResult

      @GET @WebMethod(name="result.json") public org.kohsuke.stapler.json.JsonHttpResponse getResult(@QueryParameter String buildUrl)