atg.projects.store.ui
Class AjaxUtils

java.lang.Object
  extended by atg.projects.store.ui.AjaxUtils

public class AjaxUtils
extends java.lang.Object

Utility methods for AJAX request processing.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
AjaxUtils()
           
 
Method Summary
 boolean isAjaxRequest()
          A no args method to determine if this request is an AJAX request.
static boolean isAjaxRequest(atg.servlet.DynamoHttpServletRequest pRequest)
          Determine is this request an AJAX request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

AjaxUtils

public AjaxUtils()
Method Detail

isAjaxRequest

public static boolean isAjaxRequest(atg.servlet.DynamoHttpServletRequest pRequest)
Determine is this request an AJAX request. Any UI components that require an alternate response for AJAX requests (with JSON data for example), should set a request header "Accept:application/json".

Parameters:
pRequest - The HTTP request
Returns:
true if this is an AJAX request, false otherwise

isAjaxRequest

public boolean isAjaxRequest()
A no args method to determine if this request is an AJAX request. The current request is obtained from the ServletUtil class.

Returns:
true if this is an AJAX request, false otherwise