Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      javax.ws.rs.core.Response.Status getResult()
      get the result
      void 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 action
      void stopAtRemoteLocation​(org.apache.http.client.methods.CloseableHttpResponse stopResponse)
      stops the job at a remote location
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BatchCancelRequestAction

        public BatchCancelRequestAction()
    • 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 interface BulkDataClientAction
      • 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