public class HttpTestUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COOKIE_NAME_JSESSIONID |
static String |
HEADER_COOKIE |
static String |
HEADER_SET_COOKIE |
| Modifier and Type | Method and Description |
|---|---|
static 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 @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 |
getHttpClient() |
static @NotNull String |
getUrl(@NotNull BambooEnvironmentData environmentData,
@NotNull String location) |
static javax.servlet.http.Cookie |
seleniumToJavaXCookie(org.openqa.selenium.Cookie cookie) |
public static final String HEADER_SET_COOKIE
public static final String HEADER_COOKIE
public static final String COOKIE_NAME_JSESSIONID
public static javax.servlet.http.Cookie seleniumToJavaXCookie(org.openqa.selenium.Cookie cookie)
@NotNull public static @NotNull String getCookieHeaderValue(@NotNull @NotNull Map<String,javax.servlet.http.Cookie> cookies)
@NotNull public static @NotNull String getCookieHeaderValue(@NotNull @NotNull Iterable<javax.servlet.http.Cookie> cookies)
public static com.google.common.collect.Multimap<String,org.apache.http.Header> getHeadersAsMap(org.apache.http.Header[] headers)
@NotNull
public static @NotNull org.apache.http.client.methods.HttpGet createGetMethod(@NotNull
@NotNull BambooEnvironmentData environmentData,
@NotNull
@NotNull String location)
@NotNull
public static @NotNull org.apache.http.client.methods.HttpPost createPostMethod(@NotNull
@NotNull BambooEnvironmentData environmentData,
@NotNull
@NotNull String location)
@NotNull public static @NotNull org.apache.http.impl.client.HttpClientBuilder getHttpClient()
@NotNull public static @NotNull String getUrl(@NotNull @NotNull BambooEnvironmentData environmentData, @NotNull @NotNull String location)
public static void addBasicAuth(org.apache.http.HttpRequest method)
throws org.apache.http.auth.AuthenticationException
org.apache.http.auth.AuthenticationExceptionCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.