public class HC4CookieHandler extends Object implements CookieHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_POLICY_NAME |
| Constructor and Description |
|---|
HC4CookieHandler()
Default constructor that uses
DEFAULT_POLICY_NAME |
HC4CookieHandler(String policy) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookieFromHeader(CookieManager cookieManager,
boolean checkCookies,
String cookieHeader,
URL url)
Add cookie to CookieManager from cookieHeader and URL
|
String |
getCookieHeaderForURL(CollectionProperty cookiesCP,
URL url,
boolean allowVariableCookie)
Find cookies applicable to the given URL and build the Cookie header from
them.
|
String |
getDefaultPolicy() |
String[] |
getPolicies() |
public static final String DEFAULT_POLICY_NAME
public HC4CookieHandler()
DEFAULT_POLICY_NAMEpublic HC4CookieHandler(String policy)
public void addCookieFromHeader(CookieManager cookieManager, boolean checkCookies, String cookieHeader, URL url)
CookieHandleraddCookieFromHeader in interface CookieHandlercookieManager - CookieManager on which cookies are addedcheckCookies - boolean to indicate if cookies must be validated against speccookieHeader - String cookie Headerurl - URLpublic String getCookieHeaderForURL(CollectionProperty cookiesCP, URL url, boolean allowVariableCookie)
CookieHandlergetCookieHeaderForURL in interface CookieHandlercookiesCP - CollectionProperty of Cookieurl - URL of the request to which the returned header will be added.allowVariableCookie - flag whether to allow jmeter variables in cookie valuespublic String getDefaultPolicy()
getDefaultPolicy in interface CookieHandlerpublic String[] getPolicies()
getPolicies in interface CookieHandlerCopyright © 1998-2020 Apache Software Foundation. All Rights Reserved.