Class BlockedSetCookieWithReason


  • @Beta
    public class BlockedSetCookieWithReason
    extends java.lang.Object
    A cookie which was not stored from a response with the corresponding reason.
    • Constructor Detail

      • BlockedSetCookieWithReason

        public BlockedSetCookieWithReason​(java.util.List<SetCookieBlockedReason> blockedReasons,
                                          java.lang.String cookieLine,
                                          java.util.Optional<Cookie> cookie)
    • Method Detail

      • getBlockedReasons

        public java.util.List<SetCookieBlockedReason> getBlockedReasons()
        The reason(s) this cookie was blocked.
      • getCookieLine

        public java.lang.String getCookieLine()
        The string representing this individual cookie as it would appear in the header. This is not the entire "cookie" or "set-cookie" header which could have multiple cookies.
      • getCookie

        public java.util.Optional<Cookie> getCookie()
        The cookie object which represents the cookie which was not stored. It is optional because sometimes complete cookie information is not available, such as in the case of parsing errors.