Class DefaultCxOccAttributesStrategy

  • All Implemented Interfaces:
    CxOccAttributesStrategy

    @Deprecated(since="2005",
                forRemoval=true)
    public class DefaultCxOccAttributesStrategy
    extends java.lang.Object
    implements CxOccAttributesStrategy
    Deprecated, for removal: This API element is subject to removal in a future version.
    since 2005 - use CxOccAttributesFromHeaderStrategy class instead
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCxOccAttributesStrategy()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected ConfigurationService getConfigurationService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected CxConfigurationService getCxConfigurationService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.String getPersonalizationIdCookie()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.String getPersonalizationIdHeader()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.String getPersonalizationTimeCookie()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.String getPersonalizationTimeHeader()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected TimeService getTimeService()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected boolean isPersonalizationCookieEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      java.util.Optional<java.lang.Long> readPersonalizationCalculationTime​(javax.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Read personalization calculation time
      java.util.Optional<java.lang.String> readPersonalizationId​(javax.servlet.http.HttpServletRequest request)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Read personalization identifier
      protected <T> java.util.Optional<T> readValueFromRequest​(javax.servlet.http.HttpServletRequest request, java.util.function.Supplier<java.lang.String> headerNameSupplier, java.util.function.Supplier<java.lang.String> cookieNameSupplier, java.util.function.Function<java.lang.String,​T> valueMaper)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      protected java.lang.Long safeValueOf​(java.lang.String value)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setConfigurationService​(ConfigurationService configurationService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setCxConfigurationService​(CxConfigurationService cxConfigurationService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void setPersonalizationCalculationTime​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set personalization calculation time
      void setPersonalizationId​(java.lang.String personalizationId, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set personalization identifier
      void setTimeService​(TimeService timeService)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCxOccAttributesStrategy

        public DefaultCxOccAttributesStrategy()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • setPersonalizationId

        public void setPersonalizationId​(java.lang.String personalizationId,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CxOccAttributesStrategy
        Set personalization identifier
        Specified by:
        setPersonalizationId in interface CxOccAttributesStrategy
        Parameters:
        personalizationId - personalization identifier to set
        request - Http request
        response - Http reponse
      • readPersonalizationId

        public java.util.Optional<java.lang.String> readPersonalizationId​(javax.servlet.http.HttpServletRequest request)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CxOccAttributesStrategy
        Read personalization identifier
        Specified by:
        readPersonalizationId in interface CxOccAttributesStrategy
        Parameters:
        request - Http request
        Returns:
        personalization identifier
      • setPersonalizationCalculationTime

        public void setPersonalizationCalculationTime​(javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CxOccAttributesStrategy
        Set personalization calculation time
        Specified by:
        setPersonalizationCalculationTime in interface CxOccAttributesStrategy
        Parameters:
        request - Http request
        response - Http response
      • readPersonalizationCalculationTime

        public java.util.Optional<java.lang.Long> readPersonalizationCalculationTime​(javax.servlet.http.HttpServletRequest request)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from interface: CxOccAttributesStrategy
        Read personalization calculation time
        Specified by:
        readPersonalizationCalculationTime in interface CxOccAttributesStrategy
        Parameters:
        request - Http request
        Returns:
        personalization calculation time as epoch time
      • readValueFromRequest

        protected <T> java.util.Optional<T> readValueFromRequest​(javax.servlet.http.HttpServletRequest request,
                                                                 java.util.function.Supplier<java.lang.String> headerNameSupplier,
                                                                 java.util.function.Supplier<java.lang.String> cookieNameSupplier,
                                                                 java.util.function.Function<java.lang.String,​T> valueMaper)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • safeValueOf

        protected java.lang.Long safeValueOf​(java.lang.String value)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • isPersonalizationCookieEnabled

        protected boolean isPersonalizationCookieEnabled()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getPersonalizationIdHeader

        protected java.lang.String getPersonalizationIdHeader()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getPersonalizationIdCookie

        protected java.lang.String getPersonalizationIdCookie()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getPersonalizationTimeHeader

        protected java.lang.String getPersonalizationTimeHeader()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getPersonalizationTimeCookie

        protected java.lang.String getPersonalizationTimeCookie()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getTimeService

        protected TimeService getTimeService()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setTimeService

        public void setTimeService​(TimeService timeService)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getConfigurationService

        protected ConfigurationService getConfigurationService()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setConfigurationService

        public void setConfigurationService​(ConfigurationService configurationService)
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getCxConfigurationService

        protected CxConfigurationService getCxConfigurationService()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • setCxConfigurationService

        public void setCxConfigurationService​(CxConfigurationService cxConfigurationService)
        Deprecated, for removal: This API element is subject to removal in a future version.