com.day.cq.commons.servlets
Class HtmlStatusResponseHelper

java.lang.Object
  extended by com.day.cq.commons.servlets.HtmlStatusResponseHelper

public class HtmlStatusResponseHelper
extends Object

HtmlResponseHelper...


Constructor Summary
HtmlStatusResponseHelper()
           
 
Method Summary
static HtmlResponse createStatusResponse(boolean success, String message)
          Create a html status response
static HtmlResponse createStatusResponse(boolean success, String[] messages, String[] paths)
          Create a html status response
static HtmlResponse createStatusResponse(boolean success, String message, String path)
          Create a html status response
static HtmlResponse createStatusResponse(int status, String message)
          Create a html status response
static HtmlResponse createStatusResponse(int status, String message, String path)
          Create a html status response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlStatusResponseHelper

public HtmlStatusResponseHelper()
Method Detail

createStatusResponse

public static HtmlResponse createStatusResponse(boolean success,
                                                String message,
                                                String path)
Create a html status response

Parameters:
success - true if action succeeded
message - Action/error message
path - path of the "modified" page
Returns:
the html response

createStatusResponse

public static HtmlResponse createStatusResponse(int status,
                                                String message,
                                                String path)
Create a html status response

Parameters:
status - status code
message - Action/error message
path - path of the "modified" page
Returns:
the html response

createStatusResponse

public static HtmlResponse createStatusResponse(boolean success,
                                                String message)
Create a html status response

Parameters:
success - true if action succeeded
message - Action/error message
Returns:
the html response

createStatusResponse

public static HtmlResponse createStatusResponse(int status,
                                                String message)
Create a html status response

Parameters:
status - http status code
message - Action/error message
Returns:
the html response

createStatusResponse

public static HtmlResponse createStatusResponse(boolean success,
                                                String[] messages,
                                                String[] paths)
Create a html status response

Parameters:
success - true if action succeeded
messages - Action/error messages
paths - paths of the "modified" page
Returns:
the html response


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.