Interface CookieHandler

  • All Implemented Interfaces:

    
    public interface CookieHandler
    
                        

    Interface to be implemented by CookieHandler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void addCookieFromHeader(CookieManager cookieManager, boolean checkCookies, String cookieHeader, URL url) Add cookie to CookieManager from cookieHeader and URL
      abstract String getCookieHeaderForURL(CollectionProperty cookiesCP, URL url, boolean allowVariableCookie) Find cookies applicable to the given URL and build the Cookie header from them.
      abstract String getDefaultPolicy()
      abstract Array<String> getPolicies()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 added
        checkCookies - boolean to indicate if cookies must be validated against spec
        cookieHeader - String cookie Header
        url - 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 Cookie
        url - URL of the request to which the returned header will be added.
        allowVariableCookie - flag whether to allow jmeter variables in cookie values