Interface CookieHandler
-
- All Implemented Interfaces:
public interface CookieHandlerInterface to be implemented by CookieHandler
-
-
Method Summary
Modifier and Type Method Description abstract voidaddCookieFromHeader(CookieManager cookieManager, boolean checkCookies, String cookieHeader, URL url)Add cookie to CookieManager from cookieHeader and URL abstract StringgetCookieHeaderForURL(CollectionProperty cookiesCP, URL url, boolean allowVariableCookie)Find cookies applicable to the given URL and build the Cookie header from them. abstract StringgetDefaultPolicy()abstract Array<String>getPolicies()-
-
Method Detail
-
addCookieFromHeader
abstract void addCookieFromHeader(CookieManager cookieManager, boolean checkCookies, String cookieHeader, URL url)
Add cookie to CookieManager from cookieHeader and URL
- Parameters:
cookieManager- CookieManager on which cookies are addedcheckCookies- boolean to indicate if cookies must be validated against speccookieHeader- String cookie Headerurl- URL
-
getCookieHeaderForURL
abstract String getCookieHeaderForURL(CollectionProperty cookiesCP, URL url, boolean allowVariableCookie)
Find cookies applicable to the given URL and build the Cookie header from them.
- Parameters:
cookiesCP- CollectionProperty of Cookieurl- URL of the request to which the returned header will be added.allowVariableCookie- flag whether to allow jmeter variables in cookie values
-
getDefaultPolicy
abstract String getDefaultPolicy()
-
getPolicies
abstract Array<String> getPolicies()
-
-
-
-