Class WebClient

java.lang.Object
software.xdev.bzst.dip.client.webclient.WebClient

public class WebClient extends Object
Helps to communicate with the BZST API.
  • Field Details

  • Constructor Details

  • Method Details

    • getDataTransferNumber

      public String getDataTransferNumber()
      Returns:
      XML as string with data transfer numbers
    • getDataTransferNumber

      public String getDataTransferNumber(String fachverfahren)
    • uploadMassData

      public void uploadMassData(String dataTransferNumber, String xmlString)
    • closeSubmission

      public void closeSubmission(String dataTransferNumber)
      Requests the closing of the submission with the given dataTransferNumber.
    • requestResultLogs

      public List<String> requestResultLogs() throws IOException
      Retrieval of the results log
      Returns:
      String list with data transfer numbers
      Throws:
      IOException
    • requestTransferResult

      public BzstDipSingleTransferResult requestTransferResult(String dataTransferNumber) throws IOException
      Get the result protocol
      Returns:
      Returns complete HttpResponse
      Throws:
      IOException
    • confirmTransfer

      public BzstDipSingleTransferResult confirmTransfer(String dataTransferNumber)
      Confirm the result protocol
    • abortSubmission

      public void abortSubmission(String dataTransferNumber)
    • readAndConfirmDataTransferNumbers

      public BzstDipRequestStatusResult readAndConfirmDataTransferNumbers() throws IOException
      Gets all data transfer numbers. Get the result protocol from a transfer number and confirm them if possible.
      Returns:
      returns true if the method should be called later again because the result is not yet available
      Throws:
      IOException