Package com.day.cq.commons.servlets
Class HtmlStatusResponseHelper
- java.lang.Object
-
- com.day.cq.commons.servlets.HtmlStatusResponseHelper
-
@Deprecated public class HtmlStatusResponseHelper extends Object
Deprecated.useHtmlStatusResponseFactoryinsteadHelper class for creating status responses for html requests.
-
-
Constructor Summary
Constructors Constructor Description HtmlStatusResponseHelper()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HtmlResponsecreateStatusResponse(boolean success, String message)Deprecated.Create a html status responsestatic HtmlResponsecreateStatusResponse(boolean success, String[] messages, String[] paths)Deprecated.Create a html status responsestatic HtmlResponsecreateStatusResponse(boolean success, String message, String path)Deprecated.Create a html status responsestatic HtmlResponsecreateStatusResponse(int status, String message)Deprecated.Create a html status responsestatic HtmlResponsecreateStatusResponse(int status, String message, String path)Deprecated.Create a html status response
-
-
-
Method Detail
-
createStatusResponse
public static HtmlResponse createStatusResponse(boolean success, String message, String path)
Deprecated.Create a html status response- Parameters:
success-trueif action succeededmessage- Action/error messagepath- 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 codemessage- Action/error messagepath- 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-trueif action succeededmessage- 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 codemessage- 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-trueif action succeededmessages- Action/error messagespaths- paths of the "modified" page- Returns:
- the html response
-
-