@Path(value="/ingest-external/v1") public class IngestExternalResource extends ApplicationStatusResource
STATUS_URL, TENANTS_URL| Constructor and Description |
|---|
IngestExternalResource(IngestExternalConfiguration ingestExternalConfiguration,
SecureEndpointRegistry secureEndpointRegistry)
Constructor IngestExternalResource
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
downloadArchiveTransferReplyAsStream(String objectId)
Download archive transfer reply stored by Ingest operation
|
javax.ws.rs.core.Response |
downloadIngestManifestsAsStream(String objectId)
Download manifest stored by Ingest operation
|
javax.ws.rs.core.Response |
listResourceEndpoints()
List secured resource end points
|
void |
upload(String contextId,
String action,
InputStream uploadedInputStream,
javax.ws.rs.container.AsyncResponse asyncResponse)
upload the file in local
|
void |
uploadLocal(String contextId,
String action,
LocalFile localFile,
javax.ws.rs.container.AsyncResponse asyncResponse)
upload a local file
|
getServerTenants, statuspublic IngestExternalResource(IngestExternalConfiguration ingestExternalConfiguration, SecureEndpointRegistry secureEndpointRegistry)
ingestExternalConfiguration - the configuration of server resourcesecureEndpointRegistry - @Path(value="/") @OPTIONS @Produces(value="application/json") public javax.ws.rs.core.Response listResourceEndpoints()
@Path(value="ingests")
@POST
@Consumes(value="application/octet-stream")
public void upload(@HeaderParam(value="X-Context-Id")
String contextId,
@HeaderParam(value="X-ACTION")
String action,
InputStream uploadedInputStream,
@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse)
contextId - the context id of uploadaction - in workflowuploadedInputStream - data input streamasyncResponse - the asynchronized response@Path(value="ingests")
@POST
@Consumes(value="application/json")
public void uploadLocal(@HeaderParam(value="X-Context-Id")
String contextId,
@HeaderParam(value="X-ACTION")
String action,
LocalFile localFile,
@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse)
contextId - the context id of uploadaction - in workflowlocalFile - local fileasyncResponse - the asynchronized response@GET
@Path(value="/ingests/{objectId}/archivetransferreply")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response downloadArchiveTransferReplyAsStream(@PathParam(value="objectId")
String objectId)
Return the archive transfer reply as stream asynchronously
The caller is responsible to close the Response after consuming the inputStream.
objectId - the id of archive transfer reply to download@GET
@Path(value="/ingests/{objectId}/manifests")
@Produces(value="application/octet-stream")
public javax.ws.rs.core.Response downloadIngestManifestsAsStream(@PathParam(value="objectId")
String objectId)
Return the manifest as stream asynchronously
The caller is responsible to close the Response after consuming the inputStream.
objectId - the id of object to downloadCopyright © 2018 Vitam. All rights reserved.