@ControllerAdvice @Deprecated public class CartCookieResponseBodyAdvice extends Object implements org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
Constructor and Description |
---|
CartCookieResponseBodyAdvice(CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder,
CartCookieIssuer cartCookieIssuer,
com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver contextInfoWebRequestResolver)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
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.
|
protected CartCookieIssuer |
getCartCookieIssuer()
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 |
getContextInfoWebRequestResolver()
Deprecated.
|
protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart> |
getRequestCartHolder()
Deprecated.
|
boolean |
supports(org.springframework.core.MethodParameter returnType,
Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
Deprecated.
|
public CartCookieResponseBodyAdvice(CartHolder<com.broadleafcommerce.cart.client.domain.Cart> requestCartHolder, CartCookieIssuer cartCookieIssuer, com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver contextInfoWebRequestResolver)
public boolean supports(@NonNull org.springframework.core.MethodParameter returnType, @NonNull Class<? extends org.springframework.http.converter.HttpMessageConverter<?>> converterType)
supports
in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
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)
beforeBodyWrite
in interface org.springframework.web.servlet.mvc.method.annotation.ResponseBodyAdvice<Object>
protected com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo(org.springframework.http.server.ServerHttpRequest serverRequest)
protected CartHolder<com.broadleafcommerce.cart.client.domain.Cart> getRequestCartHolder()
protected CartCookieIssuer getCartCookieIssuer()
protected com.broadleafcommerce.data.tracking.core.context.ContextInfoWebRequestResolver getContextInfoWebRequestResolver()
Copyright © 2021. All rights reserved.