Package org.aktin.broker.rest
Class AggregatorEndpoint
java.lang.Object
org.aktin.broker.rest.AggregatorEndpoint
@Path("/aggregator/")
public class AggregatorEndpoint
extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_URL -
Constructor Summary
Constructors Constructor Description AggregatorEndpoint() -
Method Summary
Modifier and Type Method Description StringcreateResultNodeDownload(int requestId, int nodeId)Create a download id to download the result uploaded for the request id and node id.javax.ws.rs.core.ResponsegetResultNodeDataStream(int requestId, int nodeId)Create a download id to download the result uploaded for the request id and node id.ResultListlistResultsForRequest(String requestId)voidsubmitResult(String requestId, javax.ws.rs.core.MediaType type, javax.ws.rs.core.SecurityContext sec, InputStream content)
-
Field Details
-
SERVICE_URL
- See Also:
- Constant Field Values
-
-
Constructor Details
-
AggregatorEndpoint
public AggregatorEndpoint()
-
-
Method Details
-
submitResult
@PUT @Path("my/request/{id}/result") public void submitResult(@PathParam("id") String requestId, @HeaderParam("Content-type") javax.ws.rs.core.MediaType type, @Context javax.ws.rs.core.SecurityContext sec, InputStream content) throws URISyntaxException- Throws:
URISyntaxException
-
listResultsForRequest
@GET @Path("request/{id}/result") @Produces("application/xml") public ResultList listResultsForRequest(@PathParam("id") String requestId) -
createResultNodeDownload
@POST @Produces("text/plain") @Path("request/{id}/result/{nodeId}/download") public String createResultNodeDownload(@PathParam("id") int requestId, @PathParam("nodeId") int nodeId)Create a download id to download the result uploaded for the request id and node id.- Parameters:
requestId- request id of the desired resultnodeId- node id of the desired result- Returns:
- download id to be used with the download endpoint
-
getResultNodeDataStream
@GET @Path("request/{id}/result/{nodeId}") public javax.ws.rs.core.Response getResultNodeDataStream(@PathParam("id") int requestId, @PathParam("nodeId") int nodeId)Create a download id to download the result uploaded for the request id and node id.- Parameters:
requestId- request id of the desired resultnodeId- node id of the desired result- Returns:
- download id to be used with the download endpoint
-