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 Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_HEADER_GUEST_TOKEN
-
Constructor Summary
Constructors Constructor Description HeaderRequestGuestTokenResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getHeaderName()
Gets the header name to check for the guest tokenOptional<String>
resolveGuestToken(javax.servlet.http.HttpServletRequest request)
Attempts to resolve a guest token string for the given request.
-
-
-
Field Detail
-
DEFAULT_HEADER_GUEST_TOKEN
protected static final String DEFAULT_HEADER_GUEST_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 interfaceRequestGuestTokenResolver
- 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
-
-