Class ContentEndpoint
java.lang.Object
com.broadleafcommerce.rest.api.endpoint.BaseEndpoint
com.broadleafcommerce.rest.api.endpoint.content.ContentEndpoint
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.MessageSourceAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.broadleafcommerce.core.catalog.service.CatalogServiceFields inherited from class com.broadleafcommerce.rest.api.endpoint.BaseEndpoint
context, messageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringrenderCategoryContent(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String name, Long categoryId) Rendered content zone endpoint used for category pages.renderContent(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String name) Rendered content zone endpoint.renderProductContent(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String name, Long productId) Rendered content zone endpoint used for product pages.Methods inherited from class com.broadleafcommerce.rest.api.endpoint.BaseEndpoint
getApplicationContext, getMessageSource, setApplicationContext, setMessageSource
-
Field Details
-
catalogService
protected org.broadleafcommerce.core.catalog.service.CatalogService catalogService
-
-
Constructor Details
-
ContentEndpoint
public ContentEndpoint()
-
-
Method Details
-
renderContent
public String renderContent(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String name) Rendered content zone endpoint.- Parameters:
model-request-name-- Returns:
-
renderCategoryContent
public String renderCategoryContent(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String name, Long categoryId) Rendered content zone endpoint used for category pages.- Parameters:
model-request-name-categoryId-- Returns:
-
renderProductContent
public String renderProductContent(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String name, Long productId) Rendered content zone endpoint used for product pages.- Parameters:
model-request-name-productId-- Returns:
-
getRenderContentView
-