Package com.day.cq.commons.servlets
Class HtmlStatusResponseFactory
java.lang.Object
com.day.cq.commons.servlets.HtmlStatusResponseFactory
Factory for creating status responses for html requests.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HtmlResponsecreateStatusResponse(boolean success, String message) Create a html status responsestatic HtmlResponsecreateStatusResponse(boolean success, String[] messages, String[] paths) Create a html status responsestatic HtmlResponsecreateStatusResponse(boolean success, String message, String path) Create a html status responsestatic HtmlResponsecreateStatusResponse(int status, String message) Create a html status responsestatic HtmlResponsecreateStatusResponse(int status, String message, String path) Create a html status response
-
Method Details
-
createStatusResponse
Create a html status response- Parameters:
success-trueif action succeededmessage- Action/error messagepath- path of the "modified" page- Returns:
- the html response
-
createStatusResponse
Create a html status response- Parameters:
status- status codemessage- Action/error messagepath- path of the "modified" page- Returns:
- the html response
-
createStatusResponse
Create a html status response- Parameters:
success-trueif action succeededmessage- Action/error message- Returns:
- the html response
-
createStatusResponse
Create a html status response- Parameters:
status- http status codemessage- Action/error message- Returns:
- the html response
-
createStatusResponse
Create a html status response- Parameters:
success-trueif action succeededmessages- Action/error messagespaths- paths of the "modified" page- Returns:
- the html response
-