Class HttpTestUtils
java.lang.Object
com.atlassian.bamboo.testutils.http.HttpTestUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddBasicAuth(org.apache.http.HttpRequest method) static @NotNull org.apache.http.client.methods.HttpGetcreateGetMethod(@NotNull BambooEnvironmentData environmentData, @NotNull String location) static @NotNull org.apache.http.client.methods.HttpPostcreatePostMethod(@NotNull BambooEnvironmentData environmentData, @NotNull String location) static Stringstatic @NotNull StringgetCookieHeaderValue(@NotNull Iterable<jakarta.servlet.http.Cookie> cookies) static @NotNull StringgetCookieHeaderValue(@NotNull Map<String, jakarta.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.HttpClientBuilderstatic @NotNull StringgetUrl(@NotNull BambooEnvironmentData environmentData, @NotNull String location) static jakarta.servlet.http.CookieseleniumToJavaXCookie(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 jakarta.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
-