public final class HtmlStatusResponseFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static HtmlResponse |
createStatusResponse(boolean success,
java.lang.String message)
Create a html status response
|
static HtmlResponse |
createStatusResponse(boolean success,
java.lang.String[] messages,
java.lang.String[] paths)
Create a html status response
|
static HtmlResponse |
createStatusResponse(boolean success,
java.lang.String message,
java.lang.String path)
Create a html status response
|
static HtmlResponse |
createStatusResponse(int status,
java.lang.String message)
Create a html status response
|
static HtmlResponse |
createStatusResponse(int status,
java.lang.String message,
java.lang.String path)
Create a html status response
|
public static HtmlResponse createStatusResponse(boolean success, java.lang.String message, java.lang.String path)
success
- true
if action succeededmessage
- Action/error messagepath
- path of the "modified" pagepublic static HtmlResponse createStatusResponse(int status, java.lang.String message, java.lang.String path)
status
- status codemessage
- Action/error messagepath
- path of the "modified" pagepublic static HtmlResponse createStatusResponse(boolean success, java.lang.String message)
success
- true
if action succeededmessage
- Action/error messagepublic static HtmlResponse createStatusResponse(int status, java.lang.String message)
status
- http status codemessage
- Action/error messagepublic static HtmlResponse createStatusResponse(boolean success, java.lang.String[] messages, java.lang.String[] paths)
success
- true
if action succeededmessages
- Action/error messagespaths
- paths of the "modified" pageCopyright © 2010 - 2020 Adobe. All Rights Reserved