com.atlassian.confluence.it
Class HeadersHelper
java.lang.Object
com.atlassian.confluence.it.HeadersHelper
public class HeadersHelper
- extends java.lang.Object
Method Summary |
void |
addBasicAuthenticationHeader(User user,
java.util.Map<java.lang.String,java.lang.String> requestHeaders)
|
static void |
assertHeaderContains(java.lang.String key,
java.lang.String expectedValue,
HeadersHelper.Response actual)
|
static void |
assertHeaderEquals(java.lang.String key,
java.lang.String expectedValue,
HeadersHelper.Response actual)
|
static void |
assertHeaderNotEquals(java.lang.String key,
java.lang.String expectedValue,
HeadersHelper.Response actual)
|
static void |
assertHeaderNotPresent(java.lang.String key,
HeadersHelper.Response actual)
|
HeadersHelper.Response |
getHeaders(java.lang.String relativeUrl,
java.util.Map<java.lang.String,java.lang.String> requestHeaders)
|
HeadersHelper.Response |
getHeaders(java.lang.String relativeUrl,
User user)
Gets the response headers for a request using os_username query parameter authentication. |
HeadersHelper.Response |
getHeaders(java.lang.String relativeUrl,
User user,
java.lang.String userAgent)
|
HeadersHelper.Response |
getHeadersFromAbsoluteUrl(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> requestHeaders)
|
HeadersHelper.Response |
getHeadersFromAbsoluteUrl(java.lang.String url,
User user)
Gets the response headers for a request using Basic authentication. |
HeadersHelper.Response |
getHeadersFromAbsoluteUrl(java.lang.String url,
User user,
java.lang.String userAgent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeadersHelper
public HeadersHelper(java.lang.String baseUrl)
assertHeaderContains
public static void assertHeaderContains(java.lang.String key,
java.lang.String expectedValue,
HeadersHelper.Response actual)
assertHeaderEquals
public static void assertHeaderEquals(java.lang.String key,
java.lang.String expectedValue,
HeadersHelper.Response actual)
assertHeaderNotEquals
public static void assertHeaderNotEquals(java.lang.String key,
java.lang.String expectedValue,
HeadersHelper.Response actual)
assertHeaderNotPresent
public static void assertHeaderNotPresent(java.lang.String key,
HeadersHelper.Response actual)
getHeaders
public HeadersHelper.Response getHeaders(java.lang.String relativeUrl,
User user)
throws java.lang.Exception
- Gets the response headers for a request using os_username query parameter authentication.
- Throws:
java.lang.Exception
getHeaders
public HeadersHelper.Response getHeaders(java.lang.String relativeUrl,
User user,
java.lang.String userAgent)
throws java.lang.Exception
- Throws:
java.lang.Exception
getHeadersFromAbsoluteUrl
public HeadersHelper.Response getHeadersFromAbsoluteUrl(java.lang.String url,
User user)
throws java.lang.Exception
- Gets the response headers for a request using Basic authentication.
- Throws:
java.lang.Exception
getHeadersFromAbsoluteUrl
public HeadersHelper.Response getHeadersFromAbsoluteUrl(java.lang.String url,
User user,
java.lang.String userAgent)
throws java.lang.Exception
- Throws:
java.lang.Exception
addBasicAuthenticationHeader
public void addBasicAuthenticationHeader(User user,
java.util.Map<java.lang.String,java.lang.String> requestHeaders)
getHeaders
public HeadersHelper.Response getHeaders(java.lang.String relativeUrl,
java.util.Map<java.lang.String,java.lang.String> requestHeaders)
throws java.lang.Exception
- Throws:
java.lang.Exception
getHeadersFromAbsoluteUrl
public HeadersHelper.Response getHeadersFromAbsoluteUrl(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> requestHeaders)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2003-2013 Atlassian. All Rights Reserved.