@Validated
public interface JobDirectoryServerService
Modifier and Type | Method and Description |
---|---|
void |
serveResource(java.lang.String jobId,
java.net.URL baseUrl,
java.lang.String relativePath,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Given the
request this API will write the resource to response if possible. |
void serveResource(java.lang.String jobId, java.net.URL baseUrl, java.lang.String relativePath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
request
this API will write the resource to response
if possible. If the resource
doesn't exist or an error is generated an appropriate HTTP error response will be written to response
instead.jobId
- The id of the job this request is forbaseUrl
- The base URL used to generate all URLs for resourcesrelativePath
- The relative path from the root of the job directory of the expected resourcerequest
- The HTTP request containing all information about the requestresponse
- The HTTP response where all results should be writtenjava.io.IOException
- If there is an error interacting with the responsejavax.servlet.ServletException
- If there is an error interacting with the Java Servlet objects