public class ActionResult extends Object
| Modifier and Type | Field and Description |
|---|---|
static ActionResult |
BAD_REQUEST |
static ActionResult |
INTERNAL_ERROR |
static ActionResult |
INTERNAL_ERROR_JSON |
static ActionResult |
OK |
static ActionResult |
OK_JSON |
static ActionResult |
SERVICE_UNAVAILABLE |
| Constructor and Description |
|---|
ActionResult(int resultCode) |
ActionResult(int resultCode,
String url) |
ActionResult(int resultCode,
String url,
boolean absoluteUrl,
org.json.JSONObject json) |
ActionResult(int resultCode,
String url,
org.json.JSONObject json) |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
getJson() |
int |
getResultCode() |
String |
getUrl() |
boolean |
isAbsoluteUrl() |
void |
setJson(org.json.JSONObject json) |
void |
setResultCode(int resultCode) |
void |
setUrl(String url) |
public static final ActionResult BAD_REQUEST
public static final ActionResult INTERNAL_ERROR
public static final ActionResult INTERNAL_ERROR_JSON
public static final ActionResult OK
public static final ActionResult OK_JSON
public static final ActionResult SERVICE_UNAVAILABLE
public ActionResult(int resultCode)
public ActionResult(int resultCode,
String url)
public ActionResult(int resultCode,
String url,
org.json.JSONObject json)
public ActionResult(int resultCode,
String url,
boolean absoluteUrl,
org.json.JSONObject json)
public org.json.JSONObject getJson()
public int getResultCode()
public String getUrl()
public boolean isAbsoluteUrl()
public void setJson(org.json.JSONObject json)
public void setResultCode(int resultCode)
public void setUrl(String url)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.