Class BroadleafControllerUtility
java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafControllerUtility
Commonly used Broadleaf Controller operations.
- ajaxRedirects
- isAjaxRequest
- ajaxRender
BroadleafAbstractController provides convenience methods for this functionality. Implementors who are not able (or willing) to have their Controllers extend BroadleafAbstractController can utilize this utility class to achieve some of the same benefits.
- Author:
- bpolster
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAjaxRequest
(jakarta.servlet.http.HttpServletRequest request) A helper method that returns whether or not the given request was invoked via an AJAX callstatic boolean
isAjaxRequest
(org.springframework.web.context.request.WebRequest request)
-
Field Details
-
BLC_REDIRECT_ATTRIBUTE
- See Also:
-
BLC_AJAX_PARAMETER
- See Also:
-
LOG
protected static final org.apache.commons.logging.Log LOG
-
-
Constructor Details
-
BroadleafControllerUtility
public BroadleafControllerUtility()
-
-
Method Details
-
isAjaxRequest
public static boolean isAjaxRequest(jakarta.servlet.http.HttpServletRequest request) A helper method that returns whether or not the given request was invoked via an AJAX callReturns true if the request contains the XMLHttpRequest header or a blcAjax=true parameter.
- Parameters:
request
-- Returns:
- - whether or not it was an AJAX request
-
isAjaxRequest
public static boolean isAjaxRequest(org.springframework.web.context.request.WebRequest request)
-