Class HtmlStatusResponseHelper

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

@Deprecated public class HtmlStatusResponseHelper extends Object
Deprecated.
Helper class for creating status responses for html requests.
  • Constructor Details

    • HtmlStatusResponseHelper

      public HtmlStatusResponseHelper()
      Deprecated.
  • Method Details

    • createStatusResponse

      public static HtmlResponse createStatusResponse(boolean success, String message, String path)
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
      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