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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description RemoteResultJsonApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
Since there is no HTML/Jelly rendering, no display name is needed.String
getIconFileName()
Since there is no HTML/Jelly rendering, no icons are needed.org.kohsuke.stapler.json.JsonHttpResponse
getResult(String buildUrl)
String
getUrlName()
getUrlName() is the root of the JSON API.
-
-
-
Method Detail
-
getIconFileName
public String getIconFileName()
Since there is no HTML/Jelly rendering, no icons are needed.- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
Since there is no HTML/Jelly rendering, no display name is needed.- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
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 interfaceAction
-
getResult
@GET @WebMethod(name="result.json") public org.kohsuke.stapler.json.JsonHttpResponse getResult(@QueryParameter String buildUrl)
-
-