Class CartCookieResponseBodyAdvice

java.lang.Object
com.broadleafcommerce.cartoperation.web.advice.CartCookieResponseBodyAdvice
All Implemented Interfaces:
org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>

@ControllerAdvice @Deprecated public class CartCookieResponseBodyAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
Deprecated.
as we are moving away from using request state for cart resolution
Response body advice responsible for writing the cart cookie at the end of each cart request.
Author:
Jacob Mitash
  • Constructor Summary

    Constructors
    Constructor
    Description
    CartCookieResponseBodyAdvice(CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder, CartCookieIssuer cartCookieIssuer, com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver contextInfoWebRequestResolver)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    beforeBodyWrite(Object body, org.springframework.core.MethodParameter returnType, org.springframework.http.MediaType selectedContentType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType, org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response)
    Deprecated.
     
    Deprecated.
     
    protected com.broadleafcommerce.data.tracking.core.context.ContextInfo
    getContextInfo(org.springframework.http.server.ServerHttpRequest serverRequest)
    Deprecated.
     
    protected com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver
    Deprecated.
     
    protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart>
    Deprecated.
     
    boolean
    supports(org.springframework.core.MethodParameter returnType, Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

    • CartCookieResponseBodyAdvice

      public CartCookieResponseBodyAdvice(CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder, CartCookieIssuer cartCookieIssuer, com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver contextInfoWebRequestResolver)
      Deprecated.
  • Method Details

    • supports

      public boolean supports(@NonNull org.springframework.core.MethodParameter returnType, @NonNull Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
      Deprecated.
      Specified by:
      supports in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
    • beforeBodyWrite

      public Object beforeBodyWrite(Object body, @Nullable org.springframework.core.MethodParameter returnType, @Nullable org.springframework.http.MediaType selectedContentType, @Nullable Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> selectedConverterType, @Nullable org.springframework.http.server.ServerHttpRequest request, @Nullable org.springframework.http.server.ServerHttpResponse response)
      Deprecated.
      Specified by:
      beforeBodyWrite in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
    • getContextInfo

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo(org.springframework.http.server.ServerHttpRequest serverRequest)
      Deprecated.
    • getRequestCartHolder

      protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart> getRequestCartHolder()
      Deprecated.
    • getCartCookieIssuer

      protected CartCookieIssuer getCartCookieIssuer()
      Deprecated.
    • getContextInfoWebRequestResolver

      protected com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver getContextInfoWebRequestResolver()
      Deprecated.