Package io.jenkins.blueocean.rest.model
Class BlueExtensionClassContainer
java.lang.Object
io.jenkins.blueocean.rest.model.BlueExtensionClassContainer
- All Implemented Interfaces:
ExtensionPoint
,ApiRoutable
,Reachable
,Routable
public abstract class BlueExtensionClassContainer
extends Object
implements ApiRoutable, ExtensionPoint, Reachable
Map representation of
BlueExtensionClass
es- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract BlueExtensionClass
GivesBlueExtensionClass
for the given class namefinal Object
getDynamic
(String name) abstract BlueExtensionClassMap
Gives Map of given class in the query toBlueExtensionClass
See Action.getUrlName() for contract.
-
Constructor Details
-
BlueExtensionClassContainer
public BlueExtensionClassContainer()
-
-
Method Details
-
get
GivesBlueExtensionClass
for the given class name- Parameters:
name
- name of the class- Returns:
BlueExtensionClass
for the given class name, null if not found
-
getDynamic
-
getMap
@POST @WebMethod(name="") public abstract BlueExtensionClassMap getMap(@JsonBody Map<String, List<String>> request) Gives Map of given class in the query toBlueExtensionClass
- Parameters:
request
- POST body with query element with value as list of classes e.g. {'q':['class1', 'class2', 'class3']}- Returns:
- Map of given class in the query to
BlueExtensionClass
. If given class in the parameter is not known then 400, BadRequest should be returned
-
getUrlName
Description copied from interface:ApiRoutable
See Action.getUrlName() for contract.- Specified by:
getUrlName
in interfaceApiRoutable
- Specified by:
getUrlName
in interfaceRoutable
-