Class WebClient
java.lang.Object
software.xdev.bzst.dip.client.webclient.WebClient
Helps to communicate with the BZST API.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWebClient(BzstDipConfiguration configuration) WebClient(BzstDipConfiguration configuration, MdEinreichenProviderApi mdEinreichenProviderApi) WebClient(BzstDipConfiguration configuration, ApiClient apiClient) -
Method Summary
Modifier and TypeMethodDescriptionvoidabortSubmission(String dataTransferNumber) voidcloseSubmission(String dataTransferNumber) Requests the closing of the submission with the given dataTransferNumber.confirmTransfer(String dataTransferNumber) Confirm the result protocolgetDataTransferNumber(String fachverfahren) Gets all data transfer numbers.Retrieval of the results logrequestTransferResult(String dataTransferNumber) Get the result protocolvoiduploadMassData(String dataTransferNumber, String xmlString)
-
Field Details
-
OK_HTTP_STATUS_CODE
public static final int OK_HTTP_STATUS_CODE- See Also:
-
-
Constructor Details
-
WebClient
-
WebClient
-
WebClient
public WebClient(BzstDipConfiguration configuration, MdEinreichenProviderApi mdEinreichenProviderApi)
-
-
Method Details
-
getDataTransferNumber
- Returns:
- XML as string with data transfer numbers
-
getDataTransferNumber
-
uploadMassData
-
closeSubmission
Requests the closing of the submission with the given dataTransferNumber. -
requestResultLogs
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
Confirm the result protocol -
abortSubmission
-
readAndConfirmDataTransferNumbers
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
-