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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperprotected StringGets the header name to check the payment lock for.protected StringGets 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.voidsetObjectMapper(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:RequestPaymentLockInfoResolverResolves the payment lock token from an attribute of the request.- Specified by:
resolveLockTokenin 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:RequestPaymentLockInfoResolverResolves the payment lock tokens from an attribute of the request.- Specified by:
resolveLockTokensin 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)
-