Class BlockedSetCookieWithReason
- java.lang.Object
-
- org.openqa.selenium.devtools.network.model.BlockedSetCookieWithReason
-
@Beta public class BlockedSetCookieWithReason extends java.lang.Object
A cookie which was not stored from a response with the corresponding reason.
-
-
Constructor Summary
Constructors Constructor Description BlockedSetCookieWithReason(SetCookieBlockedReason blockedReason, java.lang.String cookieLine, Cookie cookie)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetCookieBlockedReason
getBlockedReason()
The reason this cookie was blocked.Cookie
getCookie()
The cookie object which represents the cookie which was not stored.java.lang.String
getCookieLine()
The string representing this individual cookie as it would appear in the header.
-
-
-
Constructor Detail
-
BlockedSetCookieWithReason
public BlockedSetCookieWithReason(SetCookieBlockedReason blockedReason, java.lang.String cookieLine, Cookie cookie)
-
-
Method Detail
-
getBlockedReason
public SetCookieBlockedReason getBlockedReason()
The reason 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 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.
-
-