public class Servlets extends Object
| Constructor and Description |
|---|
Servlets() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createFolder(String name,
String description,
String parentPath)
Create a folder
|
static Boolean |
delete(String absPath)
Delete files or folder
|
static Map<String,Boolean> |
listFolder(String absPath)
List content of a folder
|
static String |
uploadFile(byte[] in,
String name,
String description,
String parentPath,
String mimetype,
long size)
Save a file
|
public static Boolean delete(String absPath) throws Exception
absPath - absolute path of the item to deleteExceptionpublic static String uploadFile(byte[] in, String name, String description, String parentPath, String mimetype, long size) throws Exception
in - name - description - parentPath - mimetype - size - Exceptionpublic static String createFolder(String name, String description, String parentPath) throws Exception
name - description - parentPath - ExceptionCopyright © 2017. All Rights Reserved.