public class NoOpCookieStore
extends java.lang.Object
implements org.apache.http.client.CookieStore
CookieStore which does nothing when asked to add / clear cookies. Calls to
getCookies() will always return an empty list. The purpose of this implementation is to prevent cookie
storage by a shared HttpClient instance by default. This behavior can help prevent subtle privacy and
security issues such as one Ignition user's credentials stored in a cookie on a client shared by another Ignition
user. When executing an HttpRequest on a shared client, a custom HttpContext should be used
which may have its own CookieStore.| Constructor and Description |
|---|
NoOpCookieStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(org.apache.http.cookie.Cookie cookie) |
void |
clear() |
boolean |
clearExpired(java.util.Date date) |
java.util.List<org.apache.http.cookie.Cookie> |
getCookies() |
public void addCookie(org.apache.http.cookie.Cookie cookie)
addCookie in interface org.apache.http.client.CookieStorepublic java.util.List<org.apache.http.cookie.Cookie> getCookies()
getCookies in interface org.apache.http.client.CookieStorepublic boolean clearExpired(java.util.Date date)
clearExpired in interface org.apache.http.client.CookieStorepublic void clear()
clear in interface org.apache.http.client.CookieStore