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 |
static com.google.common.base.Function<org.openqa.selenium.Cookie,javax.servlet.http.Cookie> |
SELENIUM_TO_JAVAX_COOKIE |
Modifier and Type | Method and Description |
---|---|
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) |
public static final String HEADER_SET_COOKIE
public static final String HEADER_COOKIE
public static final String COOKIE_NAME_JSESSIONID
public static final com.google.common.base.Function<org.openqa.selenium.Cookie,javax.servlet.http.Cookie> SELENIUM_TO_JAVAX_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)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.