Package com.atlassian.confluence.it
Class HeadersHelper
- java.lang.Object
-
- com.atlassian.confluence.it.HeadersHelper
-
public class HeadersHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HeadersHelper.Response
-
Constructor Summary
Constructors Constructor Description HeadersHelper(String baseUrl)
-
Method Summary
-
-
-
Constructor Detail
-
HeadersHelper
public HeadersHelper(String baseUrl)
-
-
Method Detail
-
assertHeaderContains
public static void assertHeaderContains(String key, String expectedValue, HeadersHelper.Response actual)
-
assertHeaderStartsWith
public static void assertHeaderStartsWith(String key, String expectedValue, HeadersHelper.Response actual)
-
assertHeaderMissing
public static void assertHeaderMissing(String key, HeadersHelper.Response actual)
-
assertHeaderEquals
public static void assertHeaderEquals(String key, String expectedValue, HeadersHelper.Response actual)
-
assertHeaderNotPresent
public static void assertHeaderNotPresent(String key, HeadersHelper.Response actual)
-
getHeaders
public HeadersHelper.Response getHeaders(String relativeUrl, User user)
Gets the response headers for a request using basic authentication.
-
getHeaders
public HeadersHelper.Response getHeaders(String relativeUrl, User user, String userAgent)
-
getHeadersFromAbsoluteUrl
public HeadersHelper.Response getHeadersFromAbsoluteUrl(String url, User user, String userAgent)
-
addBasicAuthenticationHeader
public void addBasicAuthenticationHeader(User user, Map<String,String> requestHeaders)
-
getHeaders
public HeadersHelper.Response getHeaders(String relativeUrl, Map<String,String> requestHeaders)
-
getHeadersFromAbsoluteUrl
public HeadersHelper.Response getHeadersFromAbsoluteUrl(String url, Map<String,String> requestHeaders)
-
-