Class Files
- java.lang.Object
-
- org.palladiosimulator.protocom.framework.java.ee.api.http.Files
-
public class Files extends Object
-
-
Constructor Summary
Constructors Constructor Description Files()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
deleteFile(String path)
Deletes a file.javax.ws.rs.core.Response
getFile(String path)
Gets the contents of a file.javax.ws.rs.core.Response
getFiles()
Lists all files and folders stored on the server.
-
-
-
Method Detail
-
getFiles
public javax.ws.rs.core.Response getFiles()
Lists all files and folders stored on the server.- Returns:
- a JSON response containing file and folder names
-
getFile
public javax.ws.rs.core.Response getFile(String path)
Gets the contents of a file.- Parameters:
path
- the path to the file whose contents should be returned- Returns:
- the contents of the specified file
-
deleteFile
public javax.ws.rs.core.Response deleteFile(String path)
Deletes a file.- Parameters:
path
- the path to the file to be deleted- Returns:
- an empty response
-
-