Class Files
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.api.http.Files
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
deleteFile
(String path) Deletes a file.javax.ws.rs.core.Response
Gets the contents of a file.javax.ws.rs.core.Response
getFiles()
Lists all files and folders stored on the server.
-
Constructor Details
-
Files
public Files()
-
-
Method Details
-
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
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
Deletes a file.- Parameters:
path
- the path to the file to be deleted- Returns:
- an empty response
-