Class HttpTestUtils
java.lang.Object
com.atlassian.bamboo.testutils.http.HttpTestUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addBasicAuth
(org.apache.http.HttpRequest method) static @NotNull org.apache.http.client.methods.HttpGet
createGetMethod
(@NotNull BambooEnvironmentData environmentData, @NotNull String location) static @NotNull org.apache.http.client.methods.HttpPost
createPostMethod
(@NotNull BambooEnvironmentData environmentData, @NotNull String location) static String
static @NotNull String
getCookieHeaderValue
(@NotNull Iterable<javax.servlet.http.Cookie> cookies) static @NotNull String
getCookieHeaderValue
(@NotNull Map<String, javax.servlet.http.Cookie> cookies) static com.google.common.collect.Multimap<String,
org.apache.http.Header> getHeadersAsMap
(org.apache.http.Header[] headers) static @NotNull org.apache.http.impl.client.HttpClientBuilder
static @NotNull String
getUrl
(@NotNull BambooEnvironmentData environmentData, @NotNull String location) static javax.servlet.http.Cookie
seleniumToJavaXCookie
(org.openqa.selenium.Cookie cookie)
-
Field Details
-
HEADER_SET_COOKIE
- See Also:
-
HEADER_COOKIE
- See Also:
-
COOKIE_NAME_JSESSIONID
- See Also:
-
-
Method Details
-
seleniumToJavaXCookie
public static javax.servlet.http.Cookie seleniumToJavaXCookie(org.openqa.selenium.Cookie cookie) -
getCookieHeaderValue
-
getCookieHeaderValue
-
getHeadersAsMap
public static com.google.common.collect.Multimap<String,org.apache.http.Header> getHeadersAsMap(org.apache.http.Header[] headers) -
createGetMethod
@NotNull public static @NotNull org.apache.http.client.methods.HttpGet createGetMethod(@NotNull @NotNull BambooEnvironmentData environmentData, @NotNull @NotNull String location) -
createPostMethod
@NotNull public static @NotNull org.apache.http.client.methods.HttpPost createPostMethod(@NotNull @NotNull BambooEnvironmentData environmentData, @NotNull @NotNull String location) -
getHttpClient
@NotNull public static @NotNull org.apache.http.impl.client.HttpClientBuilder getHttpClient() -
getUrl
@NotNull public static @NotNull String getUrl(@NotNull @NotNull BambooEnvironmentData environmentData, @NotNull @NotNull String location) -
addBasicAuth
public static void addBasicAuth(org.apache.http.HttpRequest method) throws org.apache.http.auth.AuthenticationException - Throws:
org.apache.http.auth.AuthenticationException
-
getBasicAuthHeader
- Throws:
org.apache.http.auth.AuthenticationException
-