Class StoreRunResources
java.lang.Object
com.occamlab.te.spi.jaxrs.resources.wmsclient.StoreRunResources
Supports testing of WMS 1.3 client implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
fileCreate
(File file, Source input) This method is used to create a file.Processes a request submitted using the POST method.void
update
(int parentID, org.json.JSONArray jsonArr) This method is used to maintain parent Child relationship for test.
-
Constructor Details
-
StoreRunResources
public StoreRunResources()
-
-
Method Details
-
handleGet
@POST @Consumes("text/plain") public String handleGet(@QueryParam("userID") String userId, @QueryParam("sessionID") String sessionID, String testData) throws IOException, org.json.JSONException Processes a request submitted using the POST method. The test run arguments are specified in the query component of the Request-URI as a sequence of key-value pairs.- Parameters:
userId
-sessionID
-testData
-- Returns:
- Throws:
IOException
org.json.JSONException
-
fileCreate
public void fileCreate(File file, Source input) throws TransformerConfigurationException, TransformerException, FileNotFoundException This method is used to create a file.- Parameters:
file
-input
-- Throws:
TransformerConfigurationException
FileNotFoundException
TransformerException
-
update
public void update(int parentID, org.json.JSONArray jsonArr) throws org.json.JSONException This method is used to maintain parent Child relationship for test.- Parameters:
parentID
-jsonArr
-- Throws:
org.json.JSONException
-