Class HeaderRequestGuestTokenResolver

java.lang.Object
com.broadleafcommerce.cartoperation.web.service.HeaderRequestGuestTokenResolver
All Implemented Interfaces:
RequestGuestTokenResolver

public class HeaderRequestGuestTokenResolver extends Object implements RequestGuestTokenResolver
Author:
Nick Crum (ncrum)
  • Field Details

  • Constructor Details

    • HeaderRequestGuestTokenResolver

      public HeaderRequestGuestTokenResolver()
  • Method Details

    • resolveGuestToken

      public Optional<String> resolveGuestToken(javax.servlet.http.HttpServletRequest request)
      Description copied from interface: RequestGuestTokenResolver
      Attempts to resolve a guest token string for the given request.
      Specified by:
      resolveGuestToken in interface RequestGuestTokenResolver
      Parameters:
      request - the request
      Returns:
      an optional with the token string, or empty
    • getHeaderName

      protected String getHeaderName()
      Gets the header name to check for the guest token
      Returns:
      the guest token header name