Interface RequestCartVersionResolver

  • All Known Implementing Classes:
    HeaderRequestCartVersionResolver

    public interface RequestCartVersionResolver
    Used for determining what version of the cart the client is using based off of attributes from the request.
    Author:
    Jacob Mitash
    • Method Detail

      • resolveCartVersion

        Optional<Integer> resolveCartVersion​(javax.servlet.http.HttpServletRequest request)
        Determines the client's cart version based off of some attribute of the request.
        Parameters:
        request - the request to examine to determine the client's cart version
        Returns:
        the cart version, or empty if unavailable