Class BatchCancelRequestAction
- java.lang.Object
-
- com.ibm.fhir.operation.bulkdata.client.action.batch.BatchCancelRequestAction
-
- All Implemented Interfaces:
BulkDataClientAction,AutoCloseable
public class BatchCancelRequestAction extends 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 voidclose()javax.ws.rs.core.Response.StatusgetResult()get the resultvoidprepare(org.apache.http.impl.client.CloseableHttpClient cli, String batchUrl, String batchUser, String batchPass)prepares the action using configuration.voidrun(String tenant, String job)Runs the given client actionvoidstopAtRemoteLocation(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, String batchUrl, String batchUser, String batchPass)Description copied from interface:BulkDataClientActionprepares the action using configuration.- Specified by:
preparein interfaceBulkDataClientAction
-
getResult
public javax.ws.rs.core.Response.Status getResult()
Description copied from interface:BulkDataClientActionget the result- Specified by:
getResultin interfaceBulkDataClientAction- Returns:
-
close
public void close() throws FHIROperationException- Specified by:
closein interfaceAutoCloseable- Throws:
FHIROperationException
-
run
public void run(String tenant, String job) throws FHIROperationException
Description copied from interface:BulkDataClientActionRuns the given client action- Specified by:
runin interfaceBulkDataClientActionjob- 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, IOExceptionstops the job at a remote location- Parameters:
stopResponse-- Throws:
org.apache.http.client.ClientProtocolExceptionIOException
-
-