Class DefaultCookieStrategy
java.lang.Object
de.hybris.platform.cpq.productconfig.services.strategies.impl.DefaultCookieStrategy
- All Implemented Interfaces:
CookieStrategy
Default implementation of
CookieStrategy-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCookieStrategy(CacheAccessService<DefaultCacheKey, CookieContainer> cookieCache, CacheKeyService cacheKeyService, de.hybris.platform.servicelayer.event.EventService eventService) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcompileCookieHeader(javax.ws.rs.core.NewCookie sessionCookie, javax.ws.rs.core.NewCookie lbalCookie) protected Stringcookie2String(javax.ws.rs.core.NewCookie cookie) protected CookieContainercreateCookieContainer(List<javax.ws.rs.core.NewCookie> cookies) protected CacheKeyServiceprotected javax.ws.rs.core.NewCookieprotected CacheAccessService<DefaultCacheKey,CookieContainer> protected CookieContainergetCookiesFromCache(String configId) getCookiesFromCache(String configId, String callerId) Fetches cookies from cacheprotected de.hybris.platform.servicelayer.event.EventServiceprotected javax.ws.rs.core.NewCookiegetLbalCookie(List<javax.ws.rs.core.NewCookie> cookies) protected javax.ws.rs.core.NewCookiegetSessionCookie(List<javax.ws.rs.core.NewCookie> cookies) protected booleanmatchesCache(CookieContainer cookieContainer, CookieContainer existingCookies) putCookiesToCache(List<javax.ws.rs.core.NewCookie> cookies, String configId) Extracts cookies from CPQ response and caches it
-
Field Details
-
COOKIE_NAME_PART_SESSION
- See Also:
-
COOKIE_NAME_PART_LBAL
- See Also:
-
-
Constructor Details
-
DefaultCookieStrategy
public DefaultCookieStrategy(CacheAccessService<DefaultCacheKey, CookieContainer> cookieCache, CacheKeyService cacheKeyService, de.hybris.platform.servicelayer.event.EventService eventService) Constructor- Parameters:
cookieCache- Cookie cache regioncacheKeyService- Cache key service
-
-
Method Details
-
putCookiesToCache
Description copied from interface:CookieStrategyExtracts cookies from CPQ response and caches it- Specified by:
putCookiesToCachein interfaceCookieStrategyconfigId- Configuration ID- Returns:
- Cookie container
-
createCookieContainer
-
compileCookieHeader
protected String compileCookieHeader(javax.ws.rs.core.NewCookie sessionCookie, javax.ws.rs.core.NewCookie lbalCookie) -
matchesCache
-
getCookiesFromCache
-
getCookiesFromCache
Description copied from interface:CookieStrategyFetches cookies from cache- Specified by:
getCookiesFromCachein interfaceCookieStrategy- Parameters:
configId- Configuration IDcallerId- Identifies the caller- Returns:
- Cookie container
-
getSessionCookie
-
getLbalCookie
-
getCookie
-
cookie2String
-
getCookieCache
-
getCacheKeyService
-
getEventService
protected de.hybris.platform.servicelayer.event.EventService getEventService()
-