Class ContentContext
java.lang.Object
com.broadleafcommerce.content.domain.commerce.context.ContentContext
- All Implemented Interfaces:
 Serializable
DTO for holding data relevant for determining which content applies to an API request.
- Author:
 - Jon Fleschler (jfleschler)
 - See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected booleanbooleanAdditional, unspecified attributes.TheCustomerRefused in this contextTheLocaleused in this contextinthashCode()voidsetAttributes(Map<String, Object> attributes) Additional, unspecified attributes.voidsetCustomer(CustomerRef customer) TheCustomerRefused in this contextvoidTheLocaleused in this contexttoString() 
- 
Field Details
- 
CONTENT_CONTEXT_HEADER
- See Also:
 
 
 - 
 - 
Constructor Details
- 
ContentContext
public ContentContext() 
 - 
 - 
Method Details
- 
addAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
 name- Name of the additional attributevalue- Value of the additional attribute
 - 
getLocale
TheLocaleused in this context - 
getCustomer
TheCustomerRefused in this context - 
getAttributes
Additional, unspecified attributes. - 
setLocale
TheLocaleused in this context - 
setCustomer
TheCustomerRefused in this context - 
setAttributes
Additional, unspecified attributes. - 
equals
 - 
canEqual
 - 
hashCode
public int hashCode() - 
toString
 
 -