public class BatchResponse extends Object
Constructor and Description |
---|
BatchResponse(String boundary,
String jwt,
org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters,
javax.ws.rs.core.Response response) |
Modifier and Type | Method and Description |
---|---|
String |
getBoundary() |
List<BatchResponseItem> |
getItems()
Parses the latest Response received into a list of
BatchResponseItem s. |
static List<BatchResponseItem> |
getItems(javax.ws.rs.core.Response response)
Parses the given Response into a list of
BatchResponseItem s. |
URI |
getMonitor() |
javax.ws.rs.core.Response |
getResponse()
Gives the last Response received from the Batch service.
|
javax.ws.rs.core.Response |
poll()
If asynchronous processing was requested, queries the monitor URI.
|
static javax.ws.rs.core.Response |
poll(URI monitor,
String jwt,
String boundary,
org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters)
If asynchronous processing was requested, queries the monitor URI.
|
public static javax.ws.rs.core.Response poll(URI monitor, String jwt, String boundary, org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters)
monitor
- monitor URIjwt
- authorization JWTboundary
- mutipart / mixed boundarytlsClientParameters
- (optional) TLS client parameterspublic static List<BatchResponseItem> getItems(javax.ws.rs.core.Response response) throws IOException
BatchResponseItem
s.response
- response to extract items fromBatchResponseItem
sIOException
- if there are issues when reading the response bodypublic String getBoundary()
public URI getMonitor()
public javax.ws.rs.core.Response getResponse()
public javax.ws.rs.core.Response poll()
public List<BatchResponseItem> getItems() throws IOException
BatchResponseItem
s.BatchResponseItem
sIOException
- if there are issues when reading the response bodyCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.