Class HeaderRequestCartVersionResolver
java.lang.Object
com.broadleafcommerce.cartoperation.web.service.HeaderRequestCartVersionResolver
- All Implemented Interfaces:
RequestCartVersionResolver
Resolves the cart version from a request header.
- Author:
- Jacob Mitash
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets the header name to check the version for.resolveCartVersion
(javax.servlet.http.HttpServletRequest request) Determines the client's cart version based off of some attribute of the request.
-
Field Details
-
DEFAULT_HEADER_CART_VERSION
- See Also:
-
-
Constructor Details
-
HeaderRequestCartVersionResolver
public HeaderRequestCartVersionResolver()
-
-
Method Details
-
resolveCartVersion
Description copied from interface:RequestCartVersionResolver
Determines the client's cart version based off of some attribute of the request.- Specified by:
resolveCartVersion
in interfaceRequestCartVersionResolver
- Parameters:
request
- the request to examine to determine the client's cart version- Returns:
- the cart version, or empty if unavailable
-
getHeaderName
Gets the header name to check the version for.- Returns:
- the cart version header name
-