Class NoOpCookieStore
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.http.NoOpCookieStore
 
- 
- All Implemented Interfaces:
- org.apache.http.client.CookieStore
 
 public class NoOpCookieStore extends java.lang.Object implements org.apache.http.client.CookieStoreA NoOpCookieStore is aCookieStorewhich does nothing when asked to add / clear cookies. Calls togetCookies()will always return an empty list. The purpose of this implementation is to prevent cookie storage by a sharedHttpClientinstance 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 anHttpRequeston a shared client, a customHttpContextshould be used which may have its own CookieStore.
- 
- 
Constructor SummaryConstructors Constructor Description NoOpCookieStore()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCookie(org.apache.http.cookie.Cookie cookie)voidclear()booleanclearExpired(java.util.Date date)java.util.List<org.apache.http.cookie.Cookie>getCookies()
 
- 
- 
- 
Method Detail- 
addCookiepublic void addCookie(org.apache.http.cookie.Cookie cookie) - Specified by:
- addCookiein interface- org.apache.http.client.CookieStore
 
 - 
getCookiespublic java.util.List<org.apache.http.cookie.Cookie> getCookies() - Specified by:
- getCookiesin interface- org.apache.http.client.CookieStore
 
 - 
clearExpiredpublic boolean clearExpired(java.util.Date date) - Specified by:
- clearExpiredin interface- org.apache.http.client.CookieStore
 
 - 
clearpublic void clear() - Specified by:
- clearin interface- org.apache.http.client.CookieStore
 
 
- 
 
-