Class IngestExternalResource


@Path("/ingest-external/v1") public class IngestExternalResource extends ApplicationStatusResource
  • Constructor Details

  • Method Details

    • listResourceEndpoints

      @Path("/") @OPTIONS @Produces("application/json") public javax.ws.rs.core.Response listResourceEndpoints()
      List secured resource end points
      Returns:
      response
    • upload

      @Path("ingests") @POST @Consumes("application/octet-stream") public void upload(@HeaderParam("X-Context-Id") String contextId, @HeaderParam("X-ACTION") String action, @HeaderParam("X-Manifest-Digest-Algo") String manifestDigestAlgo, @HeaderParam("X-Manifest-Digest-Value") String manifestDigestValue, InputStream uploadedInputStream, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
      upload the file in local
      Parameters:
      contextId - the context id of upload
      action - in workflow
      uploadedInputStream - data input stream
      asyncResponse - the asynchronized response
    • uploadLocal

      @Path("ingests") @POST @Consumes("application/json") public void uploadLocal(@HeaderParam("X-Context-Id") String contextId, @HeaderParam("X-ACTION") String action, @HeaderParam("X-Manifest-Digest-Algo") String manifestDigestAlgo, @HeaderParam("X-Manifest-Digest-Value") String manifestDigestValue, LocalFile localFile, @Suspended javax.ws.rs.container.AsyncResponse asyncResponse)
      upload a local file
      Parameters:
      contextId - the context id of upload
      action - in workflow
      localFile - local file
      asyncResponse - the asynchronized response
    • downloadArchiveTransferReplyAsStream

      @GET @Path("/ingests/{objectId}/archivetransferreply") @Produces("application/octet-stream") public javax.ws.rs.core.Response downloadArchiveTransferReplyAsStream(@PathParam("objectId") String objectId)
      Download archive transfer reply stored by Ingest operation

      Return the archive transfer reply as stream asynchronously

      The caller is responsible to close the Response after consuming the inputStream.

      Parameters:
      objectId - the id of archive transfer reply to download
      Returns:
      response
    • downloadIngestManifestsAsStream

      @GET @Path("/ingests/{objectId}/manifests") @Produces("application/octet-stream") public javax.ws.rs.core.Response downloadIngestManifestsAsStream(@PathParam("objectId") String objectId)
      Download manifest stored by Ingest operation

      Return the manifest as stream asynchronously

      The caller is responsible to close the Response after consuming the inputStream.

      Parameters:
      objectId - the id of object to download
      Returns:
      The given response with the manifest