org.broadleafcommerce.common.web.controller
Class BroadleafControllerUtility

java.lang.Object
  extended by org.broadleafcommerce.common.web.controller.BroadleafControllerUtility

public class BroadleafControllerUtility
extends Object

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
static String BLC_AJAX_PARAMETER
           
static String BLC_REDIRECT_ATTRIBUTE
           
 
Constructor Summary
BroadleafControllerUtility()
           
 
Method Summary
static boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request)
          A helper method that returns whether or not the given request was invoked via an AJAX call Returns true if the request contains the XMLHttpRequest header or a blcAjax=true parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLC_REDIRECT_ATTRIBUTE

public static final String BLC_REDIRECT_ATTRIBUTE
See Also:
Constant Field Values

BLC_AJAX_PARAMETER

public static final String BLC_AJAX_PARAMETER
See Also:
Constant Field Values
Constructor Detail

BroadleafControllerUtility

public BroadleafControllerUtility()
Method Detail

isAjaxRequest

public static boolean isAjaxRequest(javax.servlet.http.HttpServletRequest request)
A helper method that returns whether or not the given request was invoked via an AJAX call Returns true if the request contains the XMLHttpRequest header or a blcAjax=true parameter.

Parameters:
request -
Returns:
- whether or not it was an AJAX request


Copyright © 2012. All Rights Reserved.