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

com.github.becausetesting.httpclient.bean.CookiesStore Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package com.github.becausetesting.httpclient.bean;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;

import org.apache.http.client.CookieStore;
import org.apache.http.cookie.Cookie;

public class CookiesStore implements CookieStore {

	private List cookies = new ArrayList();

	@Override
	public void addCookie(Cookie cookie) {
		// TODO Auto-generated method stub
		cookies.add(cookie);
	}

	@Override
	public void clear() {
		// TODO Auto-generated method stub
		cookies.clear();
	}

	@Override
	public boolean clearExpired(Date arg0) {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public List getCookies() {
		// TODO Auto-generated method stub
		return Collections.unmodifiableList(cookies);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy