public class JSONResponse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_JSON_UTF8 |
static java.lang.String |
TEXT_HTML_UTF8 |
Constructor and Description |
---|
JSONResponse() |
JSONResponse(boolean success,
java.lang.String message) |
JSONResponse(boolean success,
java.lang.String message,
java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData() |
java.lang.String |
getLocation() |
java.lang.String |
getMessage() |
java.lang.String |
getPath() |
int |
getStatus() |
boolean |
isSuccess() |
void |
send(HttpServletResponse response,
boolean setStatus) |
void |
setData(java.lang.String data) |
void |
setLocation(java.lang.String location) |
void |
setMessage(java.lang.String message) |
void |
setPath(java.lang.String path) |
void |
setStatus(int status) |
void |
setSuccess(boolean success) |
void |
writeJsonInTextarea(boolean v) |
public static final java.lang.String TEXT_HTML_UTF8
public static final java.lang.String APPLICATION_JSON_UTF8
public JSONResponse()
public JSONResponse(boolean success, java.lang.String message)
public JSONResponse(boolean success, java.lang.String message, java.lang.String path)
public int getStatus()
public void setStatus(int status)
public boolean isSuccess()
public void setSuccess(boolean success)
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.String getData()
public void setData(java.lang.String data)
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public void writeJsonInTextarea(boolean v)
public void send(HttpServletResponse response, boolean setStatus) throws java.io.IOException
java.io.IOException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"