All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.dongliu.requests.CookieJar Maven / Gradle / Ivy

There is a newer version: 5.0.8
Show newest version
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