public class HeaderRequestCartVersionResolver extends Object implements RequestCartVersionResolver
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_HEADER_CART_VERSION |
| Constructor and Description |
|---|
HeaderRequestCartVersionResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getHeaderName()
Gets the header name to check the version for.
|
Optional<Integer> |
resolveCartVersion(javax.servlet.http.HttpServletRequest request)
Determines the client's cart version based off of some attribute of the request.
|
protected static final String DEFAULT_HEADER_CART_VERSION
public Optional<Integer> resolveCartVersion(javax.servlet.http.HttpServletRequest request)
RequestCartVersionResolverresolveCartVersion in interface RequestCartVersionResolverrequest - the request to examine to determine the client's cart versionprotected String getHeaderName()
Copyright © 2021. All rights reserved.