Class IngestExternalResource

    • Method Detail

      • 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")
                           java.lang.String contextId,
                           @HeaderParam("X-ACTION")
                           java.lang.String action,
                           @HeaderParam("X-Manifest-Digest-Algo")
                           java.lang.String manifestDigestAlgo,
                           @HeaderParam("X-Manifest-Digest-Value")
                           java.lang.String manifestDigestValue,
                           java.io.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")
                                java.lang.String contextId,
                                @HeaderParam("X-ACTION")
                                java.lang.String action,
                                @HeaderParam("X-Manifest-Digest-Algo")
                                java.lang.String manifestDigestAlgo,
                                @HeaderParam("X-Manifest-Digest-Value")
                                java.lang.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")
                                                                              java.lang.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")
                                                                         java.lang.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