com.genesys.provisioning.CookieStoreImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of provisioning Show documentation
Show all versions of provisioning Show documentation
A Java library to interface to Genesys Provisioning public API
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();
}
}