Interface CookieConfig


public interface CookieConfig
User agent configuration for http cookies.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    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, or false 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, or false to ignore all cookies.