Class BatchResponse
java.lang.Object
org.apache.syncope.client.lib.batch.BatchResponse
Encapsulates the Batch response management via CXF Proxy Client.
-
Constructor Summary
ConstructorDescriptionBatchResponse
(String boundary, String jwt, TLSClientParameters tlsClientParameters, Response response) -
Method Summary
Modifier and TypeMethodDescriptiongetItems()
Parses the latest Response received into a list ofBatchResponseItem
s.static List
<BatchResponseItem> Parses the given Response into a list ofBatchResponseItem
s.Gives the last Response received from the Batch service.poll()
If asynchronous processing was requested, queries the monitor URI.static Response
poll
(URI monitor, String jwt, String boundary, TLSClientParameters tlsClientParameters) If asynchronous processing was requested, queries the monitor URI.
-
Constructor Details
-
BatchResponse
public BatchResponse(String boundary, String jwt, TLSClientParameters tlsClientParameters, Response response)
-
-
Method Details
-
poll
public static Response poll(URI monitor, String jwt, String boundary, TLSClientParameters tlsClientParameters) If asynchronous processing was requested, queries the monitor URI.- Parameters:
monitor
- monitor URIjwt
- authorization JWTboundary
- mutipart / mixed boundarytlsClientParameters
- (optional) TLS client parameters- Returns:
- the last Response received from the Batch service
-
getItems
Parses the given Response into a list ofBatchResponseItem
s.- Parameters:
response
- response to extract items from- Returns:
- the Batch Response parsed as list of
BatchResponseItem
s - Throws:
IOException
- if there are issues when reading the response body
-
getBoundary
-
getMonitor
-
getResponse
Gives the last Response received from the Batch service.- Returns:
- the last Response received from the Batch service
-
poll
If asynchronous processing was requested, queries the monitor URI.- Returns:
- the last Response received from the Batch service
-
getItems
Parses the latest Response received into a list ofBatchResponseItem
s.- Returns:
- the Batch Response parsed as list of
BatchResponseItem
s - Throws:
IOException
- if there are issues when reading the response body
-