Class HeaderRequestGuestTokenResolver
java.lang.Object
com.broadleafcommerce.cartoperation.web.service.HeaderRequestGuestTokenResolver
- All Implemented Interfaces:
RequestGuestTokenResolver
- Author:
- Nick Crum (ncrum)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Gets the header name to check for the guest tokenresolveGuestToken
(javax.servlet.http.HttpServletRequest request) Attempts to resolve a guest token string for the given request.
-
Field Details
-
DEFAULT_HEADER_GUEST_TOKEN
- See Also:
-
-
Constructor Details
-
HeaderRequestGuestTokenResolver
public HeaderRequestGuestTokenResolver()
-
-
Method Details
-
resolveGuestToken
Description copied from interface:RequestGuestTokenResolver
Attempts to resolve a guest token string for the given request.- Specified by:
resolveGuestToken
in interfaceRequestGuestTokenResolver
- Parameters:
request
- the request- Returns:
- an optional with the token string, or empty
-
getHeaderName
Gets the header name to check for the guest token- Returns:
- the guest token header name
-