Class NoOpCookieStore
java.lang.Object
com.inductiveautomation.ignition.gateway.http.NoOpCookieStore
- All Implemented Interfaces:
org.apache.http.client.CookieStore
A NoOpCookieStore is a
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCookie
(org.apache.http.cookie.Cookie cookie) void
clear()
boolean
clearExpired
(Date date) List<org.apache.http.cookie.Cookie>
-
Constructor Details
-
NoOpCookieStore
public NoOpCookieStore()
-
-
Method Details
-
addCookie
public void addCookie(org.apache.http.cookie.Cookie cookie) - Specified by:
addCookie
in interfaceorg.apache.http.client.CookieStore
-
getCookies
- Specified by:
getCookies
in interfaceorg.apache.http.client.CookieStore
-
clearExpired
- Specified by:
clearExpired
in interfaceorg.apache.http.client.CookieStore
-
clear
public void clear()- Specified by:
clear
in interfaceorg.apache.http.client.CookieStore
-