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

com.genesys.provisioning.CookieStoreImpl Maven / Gradle / Ivy

There is a newer version: 9.0.75
Show newest version
package com.genesys.provisioning;

import java.net.CookieManager;
import java.net.CookieStore;
import java.net.HttpCookie;
import java.net.URI;
import java.util.List;

public class CookieStoreImpl implements CookieStore {
    private final CookieStore manager = new CookieManager().getCookieStore();

    @Override
    public void add(URI uri, HttpCookie cookie) {
        manager.add(uri, cookie);
    }

    @Override
    public List get(URI uri) {
        return manager.get(uri);
    }

    @Override
    public List getCookies() {
        return manager.getCookies();
    }

    @Override
    public List getURIs() {
        return manager.getURIs();
    }

    @Override
    public boolean remove(URI uri, HttpCookie cookie) {
        return manager.remove(uri, cookie);
    }

    @Override
    public boolean removeAll() {
        return manager.removeAll();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy