Class HttpTestUtils


  • public class HttpTestUtils
    extends Object
    • Method Detail

      • 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()
      • addBasicAuth

        public static void addBasicAuth​(org.apache.http.HttpRequest method)
                                 throws org.apache.http.auth.AuthenticationException
        Throws:
        org.apache.http.auth.AuthenticationException