Class ApplicationLinksControl
java.lang.Object
com.atlassian.bamboo.testutils.backdoor.BackdoorControl<ApplicationLinksControl>
com.atlassian.bamboo.testutils.backdoor.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, XSRF_NO_CHECK, XSRF_TOKEN_HEADER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddApplicationLink
(String type, String name, String url) protected javax.ws.rs.client.WebTarget
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
anonymousResourceRoot, client, createResourceForPath, createResourceForPath, get, getEnvironmentData, getRestModulePath, getRootPath, percentEncode, ping, post, resourceRoot, tearDown
-
Constructor Details
-
ApplicationLinksControl
-
-
Method Details
-
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 javax.ws.rs.client.WebTarget createResource()Description copied from class:BackdoorControl
Creates the resource that corresponds to the root of the TestKit REST API, using the values returned byBackdoorControl.getRestModulePath()
. Note that the createdWebResource
has the following properties:- it logs all GET/POST/etc requests made through it
- it sets the
Content-Type: application/json
by default (override withWebTarget.request(MediaType...)
)
BackdoorControl.createResourceForPath(java.lang.String)
- Overrides:
createResource
in classBackdoorControl<ApplicationLinksControl>
- Returns:
- a WebResource for the TestKit REST API root
- See Also:
-