Interface CookiePolicy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CookiePolicy
-
Method Summary
Modifier and Type Method Description boolean
accept(URI uri, Cookie cookie)
static CookiePolicy
acceptAll()
Returns aCookiePolicy
that accepts all cookies.static CookiePolicy
acceptNone()
Returns aCookiePolicy
that rejects all cookies.static CookiePolicy
acceptOriginOnly()
Returns aCookiePolicy
that only accepts cookies from the original server.
-
Method Details
-
acceptAll
Returns aCookiePolicy
that accepts all cookies. -
acceptNone
Returns aCookiePolicy
that rejects all cookies. -
acceptOriginOnly
Returns aCookiePolicy
that only accepts cookies from the original server. -
accept
-