public abstract class AbstractAPIWorker extends Object
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
protected org.apache.http.client.protocol.HttpClientContext |
context |
protected org.apache.http.impl.client.CloseableHttpClient |
httpclient |
protected org.apache.http.client.methods.HttpPost |
httpPost |
protected TaskListener |
listener |
protected String |
message |
protected org.apache.http.client.methods.CloseableHttpResponse |
response |
protected String |
responseBody |
protected int |
statusCode |
Constructor and Description |
---|
AbstractAPIWorker() |
Modifier and Type | Method and Description |
---|---|
protected void |
initializeAPICall()
Initialization for REST API call
|
protected void |
setErrorMessageFromResponse()
Assigns readable error message from non successful responses.
|
protected TaskListener listener
protected org.apache.http.client.protocol.HttpClientContext context
protected org.apache.http.client.methods.CloseableHttpResponse response
protected int statusCode
protected String responseBody
protected org.apache.http.impl.client.CloseableHttpClient httpclient
protected Configuration configuration
protected org.apache.http.client.methods.HttpPost httpPost
protected String message
Copyright © 2016–2021. All rights reserved.