Class HeaderRequestPaymentLockInfoResolver
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.service.HeaderRequestPaymentLockInfoResolver
- All Implemented Interfaces:
RequestPaymentLockInfoResolver
public class HeaderRequestPaymentLockInfoResolver
extends Object
implements RequestPaymentLockInfoResolver
Resolves the lock type and id of the payment that are provided via request headers.
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ObjectMapper
protected String
Gets the header name to check the payment lock for.protected String
Gets the header name to check the payment locks for.parseLockTokens
(String headerValue) resolveLockToken
(jakarta.servlet.http.HttpServletRequest request) Resolves the payment lock token from an attribute of the request.resolveLockTokens
(jakarta.servlet.http.HttpServletRequest request) Resolves the payment lock tokens from an attribute of the request.void
setObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Field Details
-
DEFAULT_HEADER_PAYMENT_LOCK_TOKEN
- See Also:
-
DEFAULT_HEADER_PAYMENT_LOCK_TOKENS
- See Also:
-
-
Constructor Details
-
HeaderRequestPaymentLockInfoResolver
public HeaderRequestPaymentLockInfoResolver()
-
-
Method Details
-
resolveLockToken
Description copied from interface:RequestPaymentLockInfoResolver
Resolves the payment lock token from an attribute of the request.- Specified by:
resolveLockToken
in interfaceRequestPaymentLockInfoResolver
- Parameters:
request
- the request to examine to determine the client's payment lock token- Returns:
- the payment lock token, or empty if unavailable
-
resolveLockTokens
Description copied from interface:RequestPaymentLockInfoResolver
Resolves the payment lock tokens from an attribute of the request.- Specified by:
resolveLockTokens
in interfaceRequestPaymentLockInfoResolver
- Parameters:
request
- the request to examine to determine the client's payment lock tokens- Returns:
- the payment lock tokens, or an empty map if unavailable
-
parseLockTokens
-
getPaymentLockTokenHeaderName
Gets the header name to check the payment lock for.- Returns:
- the payment version lock name
-
getPaymentLockTokensHeaderName
Gets the header name to check the payment locks for.- Returns:
- the payment locks header name
-
getObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
@Autowired public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-