Package org.broadleafcommerce.common.web
Class BroadleafRequestCustomerResolverImpl
java.lang.Object
org.broadleafcommerce.common.web.BroadleafRequestCustomerResolverImpl
- All Implemented Interfaces:
BroadleafRequestCustomerResolver,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Service("blRequestCustomerResolver")
public class BroadleafRequestCustomerResolverImpl
extends Object
implements org.springframework.context.ApplicationContextAware, BroadleafRequestCustomerResolver
By default, we'll resolve the customer from the "customer" attribute on the request.
- Author:
- Andre Azzolini (apazzolini)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCustomer(jakarta.servlet.http.HttpServletRequest request) getCustomer(org.springframework.web.context.request.WebRequest request) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetCustomer(Object customer) voidsetCustomerRequestAttributeName(String customerRequestAttributeName)
-
Field Details
-
customerRequestAttributeName
-
-
Constructor Details
-
BroadleafRequestCustomerResolverImpl
public BroadleafRequestCustomerResolverImpl()
-
-
Method Details
-
getRequestCustomerResolver
-
getCustomer
- Specified by:
getCustomerin interfaceBroadleafRequestCustomerResolver
-
getCustomer
- Specified by:
getCustomerin interfaceBroadleafRequestCustomerResolver
-
setCustomer
- Specified by:
setCustomerin interfaceBroadleafRequestCustomerResolver
-
getCustomer
- Specified by:
getCustomerin interfaceBroadleafRequestCustomerResolver
-
getCustomerRequestAttributeName
- Specified by:
getCustomerRequestAttributeNamein interfaceBroadleafRequestCustomerResolver
-
setCustomerRequestAttributeName
- Specified by:
setCustomerRequestAttributeNamein interfaceBroadleafRequestCustomerResolver
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-