Class BatchCancelRequestAction
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.client.action.batch.BatchCancelRequestAction
-
- All Implemented Interfaces:
BulkDataClientAction
,java.lang.AutoCloseable
public class BatchCancelRequestAction extends java.lang.Object implements BulkDataClientAction
Per the specification, after a Bulk Data Request starts, the client may DELETE the request using the Content-Location (polling location)DELETE [polling content location] Response - Success HTTP Status Code of 202 Accepted Optionally a FHIR OperationOutcome resource in the body Response - Error Status HTTP status code of 4XX or 5XX The body SHALL be a FHIR OperationOutcome resource in JSON format
-
-
Constructor Summary
Constructors Constructor Description BatchCancelRequestAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
javax.ws.rs.core.Response.Status
getResult()
get the resultvoid
prepare(org.apache.http.impl.client.CloseableHttpClient cli, java.lang.String batchUrl, java.lang.String batchUser, java.lang.String batchPass)
prepares the action using configuration.void
run(java.lang.String tenant, java.lang.String job)
Runs the given client actionvoid
stopAtRemoteLocation(org.apache.http.client.methods.CloseableHttpResponse stopResponse)
stops the job at a remote location
-
-
-
Method Detail
-
prepare
public void prepare(org.apache.http.impl.client.CloseableHttpClient cli, java.lang.String batchUrl, java.lang.String batchUser, java.lang.String batchPass)
Description copied from interface:BulkDataClientAction
prepares the action using configuration.- Specified by:
prepare
in interfaceBulkDataClientAction
-
getResult
public javax.ws.rs.core.Response.Status getResult()
Description copied from interface:BulkDataClientAction
get the result- Specified by:
getResult
in interfaceBulkDataClientAction
- Returns:
-
close
public void close() throws FHIROperationException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Throws:
FHIROperationException
-
run
public void run(java.lang.String tenant, java.lang.String job) throws FHIROperationException
Description copied from interface:BulkDataClientAction
Runs the given client action- Specified by:
run
in interfaceBulkDataClientAction
job
- the identifier uniquely identifying the logical id of the job- Throws:
FHIROperationException
- indicating a failure to run the action
-
stopAtRemoteLocation
public void stopAtRemoteLocation(org.apache.http.client.methods.CloseableHttpResponse stopResponse) throws org.apache.http.client.ClientProtocolException, java.io.IOException
stops the job at a remote location- Parameters:
stopResponse
-- Throws:
org.apache.http.client.ClientProtocolException
java.io.IOException
-
-