Class IgnoreCookiesSpec

  • All Implemented Interfaces:
    CookieSpec

    @Deprecated
    public class IgnoreCookiesSpec
    extends Object
    implements CookieSpec
    Deprecated.
    Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project. It is not recommended to use it in any new code. Instead, use HTTP client API plugins as a dependency in your code. E.g. Apache HttpComponents Client API 4.x Plugin or Async HTTP Client Plugin.
    A cookie spec that does nothing. Cookies are neither parsed, formatted nor matched. It can be used to effectively disable cookies altogether.
    Since:
    3.0
    • Constructor Detail

      • IgnoreCookiesSpec

        public IgnoreCookiesSpec()
        Deprecated.
    • Method Detail

      • setValidDateFormats

        public void setValidDateFormats​(Collection datepatterns)
        Deprecated.
        Does nothing.
        Specified by:
        setValidDateFormats in interface CookieSpec
        Parameters:
        datepatterns - collection of date patterns
      • formatCookie

        public String formatCookie​(Cookie cookie)
        Deprecated.
        Description copied from interface: CookieSpec
        Create a "Cookie" header value for an array of cookies.
        Specified by:
        formatCookie in interface CookieSpec
        Parameters:
        cookie - the cookie to be formatted as string
        Returns:
        null
      • match

        public boolean match​(String host,
                             int port,
                             String path,
                             boolean secure,
                             Cookie cookie)
        Deprecated.
        Description copied from interface: CookieSpec
        Determines if a Cookie matches a location.
        Specified by:
        match in interface CookieSpec
        Parameters:
        host - the host to which the request is being submitted
        port - the port to which the request is being submitted
        path - the path to which the request is being submitted
        secure - true if the request is using a secure connection
        cookie - the Cookie to be matched
        Returns:
        false
      • match

        public Cookie[] match​(String host,
                              int port,
                              String path,
                              boolean secure,
                              Cookie[] cookies)
        Deprecated.
        Returns an empty cookie array. All parameters are ignored.
        Specified by:
        match in interface CookieSpec
        Parameters:
        host - the host to which the request is being submitted
        port - the port to which the request is being submitted (currenlty ignored)
        path - the path to which the request is being submitted
        secure - true if the request is using a secure protocol
        cookies - an array of Cookies to be matched
        Returns:
        true if the cookie should be submitted with a request with given attributes, false otherwise.
      • domainMatch

        public boolean domainMatch​(String host,
                                   String domain)
        Deprecated.
        Description copied from interface: CookieSpec
        Performs domain-match as defined by the cookie specification.
        Specified by:
        domainMatch in interface CookieSpec
        Parameters:
        host - The target host.
        domain - The cookie domain attribute.
        Returns:
        false
      • pathMatch

        public boolean pathMatch​(String path,
                                 String topmostPath)
        Deprecated.
        Description copied from interface: CookieSpec
        Performs path-match as defined by the cookie specification.
        Specified by:
        pathMatch in interface CookieSpec
        Parameters:
        path - The target path.
        topmostPath - The cookie path attribute.
        Returns:
        false