Class ApplicationLinksControl
- java.lang.Object
-
- com.atlassian.bamboo.testutils.backdoor.BackdoorControl<ApplicationLinksControl>
-
- com.atlassian.bamboo.testutils.backdoor.ApplicationLinksControl
-
public class ApplicationLinksControl extends BackdoorControl<ApplicationLinksControl>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
BackdoorControl.AddXsrfNoCheckTokenFilter, BackdoorControl.JsonMediaTypeFilter
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
ADMIN_REST_PATH, API_REST_PATH, DEFAULT_REST_PATH, rootPath
-
-
Constructor Summary
Constructors Constructor Description ApplicationLinksControl(BambooEnvironmentData environmentData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaddApplicationLink(String type, String name, String url)protected com.sun.jersey.api.client.WebResourcecreateResource()Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath().-
Methods inherited from class com.atlassian.bamboo.testutils.backdoor.BackdoorControl
client, createResourceForPath, get, getEnvironmentData, getRestModulePath, percentEncode, ping, post, resourceRoot, tearDown
-
-
-
-
Constructor Detail
-
ApplicationLinksControl
public ApplicationLinksControl(BambooEnvironmentData environmentData)
-
-
Method Detail
-
addApplicationLink
public String addApplicationLink(String type, String name, String url) throws com.opensymphony.webwork.dispatcher.json.JSONException
- Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
-
createResource
protected com.sun.jersey.api.client.WebResource createResource()
Description copied from class:BackdoorControlCreates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath(). Note that the createdWebResourcehas the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/jsonby default (override withWebResource.type(javax.ws.rs.core.MediaType))
BackdoorControl.createResourceForPath(java.lang.String)- Overrides:
createResourcein classBackdoorControl<ApplicationLinksControl>- Returns:
- a WebResource for the TestKit REST API root
- See Also:
BackdoorControl.createResource(),BackdoorControl.getRestModulePath()
-
-