java.lang.Object
de.hybris.platform.cpq.productconfig.services.strategies.impl.DefaultCookieStrategy
All Implemented Interfaces:
CookieStrategy

public class DefaultCookieStrategy extends Object implements CookieStrategy
Default implementation of CookieStrategy
  • Field Details

  • Constructor Details

  • Method Details

    • putCookiesToCache

      public CookieContainer putCookiesToCache(List<javax.ws.rs.core.NewCookie> cookies, String configId)
      Description copied from interface: CookieStrategy
      Extracts cookies from CPQ response and caches it
      Specified by:
      putCookiesToCache in interface CookieStrategy
      configId - Configuration ID
      Returns:
      Cookie container
    • createCookieContainer

      protected CookieContainer createCookieContainer(List<javax.ws.rs.core.NewCookie> cookies)
    • compileCookieHeader

      protected String compileCookieHeader(javax.ws.rs.core.NewCookie sessionCookie, javax.ws.rs.core.NewCookie lbalCookie)
    • matchesCache

      protected boolean matchesCache(CookieContainer cookieContainer, CookieContainer existingCookies)
    • getCookiesFromCache

      protected CookieContainer getCookiesFromCache(String configId)
    • getCookiesFromCache

      public CookieContainer getCookiesFromCache(String configId, String callerId)
      Description copied from interface: CookieStrategy
      Fetches cookies from cache
      Specified by:
      getCookiesFromCache in interface CookieStrategy
      Parameters:
      configId - Configuration ID
      callerId - Identifies the caller
      Returns:
      Cookie container
    • getSessionCookie

      protected javax.ws.rs.core.NewCookie getSessionCookie(List<javax.ws.rs.core.NewCookie> cookies)
    • getLbalCookie

      protected javax.ws.rs.core.NewCookie getLbalCookie(List<javax.ws.rs.core.NewCookie> cookies)
    • getCookie

      protected javax.ws.rs.core.NewCookie getCookie(List<javax.ws.rs.core.NewCookie> cookies, String cookieNamePart)
    • cookie2String

      protected String cookie2String(javax.ws.rs.core.NewCookie cookie)
    • getCookieCache

      protected CacheAccessService<DefaultCacheKey,CookieContainer> getCookieCache()
    • getCacheKeyService

      protected CacheKeyService getCacheKeyService()
    • getEventService

      protected de.hybris.platform.servicelayer.event.EventService getEventService()