Class HttpTestUtils

java.lang.Object
com.atlassian.bamboo.testutils.http.HttpTestUtils

public class HttpTestUtils extends Object
  • Field Details

  • Method Details

    • seleniumToJavaXCookie

      public static javax.servlet.http.Cookie seleniumToJavaXCookie(org.openqa.selenium.Cookie cookie)
    • getCookieHeaderValue

      @NotNull public static @NotNull String getCookieHeaderValue(@NotNull @NotNull Map<String,javax.servlet.http.Cookie> cookies)
    • getCookieHeaderValue

      @NotNull public static @NotNull String getCookieHeaderValue(@NotNull @NotNull Iterable<javax.servlet.http.Cookie> cookies)
    • 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

      public static String getBasicAuthHeader() throws org.apache.http.auth.AuthenticationException
      Throws:
      org.apache.http.auth.AuthenticationException