public class RunUploader extends HttpServlet
Constructor and Description |
---|
RunUploader() |
Modifier and Type | Method and Description |
---|---|
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Post method to upload the run.
|
static void |
uploadIfOrigin(String runId)
Client call to upload the run back to the originating server.
|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
request
- The servlet requestresponse
- The servlet responseServletException
- If the servlet failsIOException
- If there is an I/O errorpublic static void uploadIfOrigin(String runId) throws IOException
runId
- The id of the runIOException
- If the upload fails