Class BatchCancelRequestAction
- java.lang.Object
 - 
- org.linuxforhealth.fhir.operation.bulkdata.client.action.batch.BatchCancelRequestAction
 
 
- 
- All Implemented Interfaces:
 java.lang.AutoCloseable,BulkDataClientAction
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 voidclose()javax.ws.rs.core.Response.StatusgetResult()get the resultvoidprepare(org.apache.http.impl.client.CloseableHttpClient cli, java.lang.String batchUrl, java.lang.String batchUser, java.lang.String batchPass)prepares the action using configuration.voidrun(java.lang.String tenant, java.lang.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, java.lang.String batchUrl, java.lang.String batchUser, java.lang.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 interfacejava.lang.AutoCloseable- Throws:
 FHIROperationException
 
- 
run
public void run(java.lang.String tenant, java.lang.String job) throws FHIROperationExceptionDescription 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, java.io.IOExceptionstops the job at a remote location- Parameters:
 stopResponse-- Throws:
 org.apache.http.client.ClientProtocolExceptionjava.io.IOException
 
 - 
 
 -