Class Options
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.api.http.Options
The Options class provides HTTP APIs for retrieving and setting the prototype's options.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
Gets the options for the prototype.javax.ws.rs.core.Response
setOptions
(String data) Sets the options for the prototype.
-
Constructor Details
-
Options
public Options()
-
-
Method Details
-
getOptions
public javax.ws.rs.core.Response getOptions()Gets the options for the prototype.- Returns:
- a JSON object containing previously stored options or the default options.
-
setOptions
Sets the options for the prototype.- Parameters:
data
- a JSON string containing the new option data- Returns:
- an HTTP 204 response if the request could be fulfilled
-