public final class JSONUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_KEY_FIELD_NAME
JSON key for field name
|
static String |
JSON_KEY_SUCCESS
JSON key to describe a success
|
| Modifier and Type | Method and Description |
|---|---|
static void |
buildJsonError(net.sf.json.JSONObject json,
String strMessage)
Builds a json object with the error message.
|
static net.sf.json.JSONObject |
buildJsonErrorRemovingFile(javax.servlet.http.HttpServletRequest request)
Builds a json object with the error message.
|
static net.sf.json.JSONObject |
getUploadedFileJSON(List<org.apache.commons.fileupload.FileItem> listFileItem)
Builds a json object for the file item list.
|
public static final String JSON_KEY_FIELD_NAME
public static final String JSON_KEY_SUCCESS
public static net.sf.json.JSONObject getUploadedFileJSON(List<org.apache.commons.fileupload.FileItem> listFileItem)
JSON_KEY_UPLOADED_FILES, value is the array of uploaded file.listFileItem - the fileItem listpublic static net.sf.json.JSONObject buildJsonErrorRemovingFile(javax.servlet.http.HttpServletRequest request)
request - the requestpublic static void buildJsonError(net.sf.json.JSONObject json,
String strMessage)
json - the JSONstrMessage - the error messageCopyright © 2021 City of Paris. All rights reserved.