Class CookieSpecBase

    • Constructor Detail

      • CookieSpecBase

        public CookieSpecBase()
    • Method Detail

      • validate

        public void validate​(Cookie cookie,
                             CookieOrigin origin)
                      throws MalformedCookieException
        Description copied from interface: CookieSpec
        Validate the cookie according to validation rules defined by the cookie specification.
        cookie - the Cookie to validate
        origin - details of the cookie origin
        MalformedCookieException - if the cookie is invalid
      • match

        public boolean match​(Cookie cookie,
                             CookieOrigin origin)
        Description copied from interface: CookieSpec
        Determines if a Cookie matches the target location.
        cookie - the Cookie to be matched
        origin - the target to test against
        true if the cookie should be submitted with a request with given attributes, false otherwise.