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 org.apache.http.client.methods.HttpGet |
createGetMethod(BambooEnvironmentData environmentData,
String location) |
static org.apache.http.client.methods.HttpPost |
createPostMethod(BambooEnvironmentData environmentData,
String location) |
static String |
getCookieHeaderValue(Iterable<javax.servlet.http.Cookie> cookies) |
static String |
getCookieHeaderValue(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 org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
static String |
getUrl(BambooEnvironmentData environmentData,
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 String getCookieHeaderValue(@NotNull Map<String,javax.servlet.http.Cookie> cookies)
@NotNull public static String getCookieHeaderValue(@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 org.apache.http.client.methods.HttpGet createGetMethod(@NotNull BambooEnvironmentData environmentData, @NotNull String location)
@NotNull public static org.apache.http.client.methods.HttpPost createPostMethod(@NotNull BambooEnvironmentData environmentData, @NotNull String location)
@NotNull public static org.apache.http.impl.client.CloseableHttpClient getHttpClient()
@NotNull public static String getUrl(@NotNull BambooEnvironmentData environmentData, @NotNull String location)
public static void addBasicAuth(org.apache.http.HttpRequest method) throws org.apache.http.auth.AuthenticationException
org.apache.http.auth.AuthenticationException
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.