net.dongliu.requests.CookieJar Maven / Gradle / Ivy
package net.dongliu.requests;
import javax.annotation.Nonnull;
import java.net.URL;
import java.util.Collection;
import java.util.List;
/**
* Interface for storing cookies
*/
public interface CookieJar {
/**
* Add multi cookies to cookie jar.
*/
void storeCookies(Collection cookies);
/**
* Get cookies match the given url.
*
* @return the cookie match url, return empty collection if no match cookie
*/
@Nonnull
List getCookies(URL url);
/**
* Get all cookies in this store
*/
@Nonnull
Collection getCookies();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy