public class DefaultGuestCheckoutCartCleanStrategy extends java.lang.Object implements GuestCheckoutCartCleanStrategy
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AJAX_REQUEST_HEADER_NAME |
| Constructor and Description |
|---|
DefaultGuestCheckoutCartCleanStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkWhetherURLContainsCheckoutPattern(HttpServletRequest request)
Checks whether the request's page is checkout URL.
|
void |
cleanGuestCart(HttpServletRequest request)
Removes the delivery address, delivery mode, payment info from the session cart, if the guest user moves away from
checkout pages.
|
protected CartService |
getCartService() |
protected CheckoutCustomerStrategy |
getCheckoutCustomerStrategy() |
java.util.regex.Pattern |
getCheckoutURLPattern() |
protected SessionService |
getSessionService() |
protected UserService |
getUserService() |
protected boolean |
isAnonymousCheckout() |
protected boolean |
isGetMethod(HttpServletRequest httpRequest) |
void |
setCartService(CartService cartService) |
void |
setCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy) |
void |
setCheckoutURLPattern(java.lang.String checkoutURLPattern) |
void |
setSessionService(SessionService sessionService) |
void |
setUserService(UserService userService) |
public static final java.lang.String AJAX_REQUEST_HEADER_NAME
public DefaultGuestCheckoutCartCleanStrategy()
public void cleanGuestCart(HttpServletRequest request)
GuestCheckoutCartCleanStrategycleanGuestCart in interface GuestCheckoutCartCleanStrategypublic boolean checkWhetherURLContainsCheckoutPattern(HttpServletRequest request)
GuestCheckoutCartCleanStrategycheckWhetherURLContainsCheckoutPattern in interface GuestCheckoutCartCleanStrategyprotected boolean isGetMethod(HttpServletRequest httpRequest)
protected CheckoutCustomerStrategy getCheckoutCustomerStrategy()
protected boolean isAnonymousCheckout()
public void setCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy)
protected CartService getCartService()
public void setCartService(CartService cartService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
protected UserService getUserService()
public void setUserService(UserService userService)
public java.util.regex.Pattern getCheckoutURLPattern()
public void setCheckoutURLPattern(java.lang.String checkoutURLPattern)
Copyright © 2017 SAP SE. All Rights Reserved.