Package io.sf.carte.doc.agent
Interface CookieConfig
public interface CookieConfig
User agent configuration for http cookies.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Does the user agent accept session cookies.void
setAcceptAllCookies
(boolean acceptAllCookies) Accept all cookies when opening HTTP connections to retrieve resources.void
setAcceptSessionCookies
(boolean acceptSessionCookies) Accept only session cookies when opening HTTP connections to retrieve resources.
-
Method Details
-
acceptsAllCookies
boolean acceptsAllCookies() -
setAcceptAllCookies
void setAcceptAllCookies(boolean acceptAllCookies) Accept all cookies when opening HTTP connections to retrieve resources.- Parameters:
acceptAllCookies
- true to accept all cookies, orfalse
to ignore cookies.
-
acceptsSessionCookies
boolean acceptsSessionCookies()Does the user agent accept session cookies.- Returns:
true
if session cookies are accepted,false
otherwise.
-
setAcceptSessionCookies
void setAcceptSessionCookies(boolean acceptSessionCookies) Accept only session cookies when opening HTTP connections to retrieve resources.- Parameters:
acceptSessionCookies
- true to accept session cookies, orfalse
to ignore all cookies.
-