public class DefaultCookieManager extends Object implements CookieManager
When cookies are not stored in the session or discarded, they are forwarded to the client browser. If no cookie is stored to the session (default) EsiGate is completely stateless. For public deployment is is recommended to use cookie forwarding and discarding to prevent session creation.
Constructor and Description |
---|
DefaultCookieManager() |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(org.apache.http.cookie.Cookie cookie,
DriverRequest originalRequest) |
void |
clear(DriverRequest request) |
boolean |
clearExpired(Date date,
DriverRequest request) |
List<org.apache.http.cookie.Cookie> |
getCookies(DriverRequest originalRequest) |
protected Collection<String> |
getStoredCookies() |
void |
init(Driver d,
Properties properties)
Init cookie manager.
|
protected static String |
rewriteDomain(String originalDomain,
String providerHostName,
String requestHostName) |
protected static org.apache.http.cookie.Cookie |
rewriteForBrowser(org.apache.http.cookie.Cookie cookie,
DriverRequest request) |
protected Collection<String> getStoredCookies()
public void init(Driver d, Properties properties)
public void addCookie(org.apache.http.cookie.Cookie cookie, DriverRequest originalRequest)
addCookie
in interface CookieManager
public List<org.apache.http.cookie.Cookie> getCookies(DriverRequest originalRequest)
getCookies
in interface CookieManager
protected static String rewriteDomain(String originalDomain, String providerHostName, String requestHostName)
protected static org.apache.http.cookie.Cookie rewriteForBrowser(org.apache.http.cookie.Cookie cookie, DriverRequest request)
public boolean clearExpired(Date date, DriverRequest request)
clearExpired
in interface CookieManager
public void clear(DriverRequest request)
clear
in interface CookieManager
Copyright © 2008–2018. All rights reserved.