public abstract class AbstractZosmfRequestRunner<T>
extends java.lang.Object
| Constructor and Description |
|---|
AbstractZosmfRequestRunner() |
AbstractZosmfRequestRunner(java.util.List<org.apache.http.Header> headers) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.methods.RequestBuilder |
addHeadersToRequest(org.apache.http.client.methods.RequestBuilder requestBuilder) |
protected ZoweApiRestException |
createException(com.google.gson.JsonObject jsonResponse,
int statusCode) |
protected ZoweApiRestException |
createGeneralException(ResponseCache responseCache,
java.net.URI uri) |
protected java.lang.Integer |
getIntegerOrNull(com.google.gson.JsonObject json,
java.lang.String key) |
protected abstract T |
getResult(ResponseCache responseCache) |
protected java.lang.String |
getStringOrNull(com.google.gson.JsonObject json,
java.lang.String key) |
protected abstract int[] |
getSuccessStatus() |
protected abstract org.apache.http.client.methods.RequestBuilder |
prepareQuery(ZosmfConnector zosmfConnector) |
protected T |
processResponse(ResponseCache responseCache,
java.net.URI uri) |
T |
run(ZosmfConnector zosmfConnector) |
protected java.lang.Boolean |
wasRequestUnauthorised(org.springframework.http.HttpStatus springStatus,
com.google.gson.JsonObject jsonResponse) |
public AbstractZosmfRequestRunner(java.util.List<org.apache.http.Header> headers)
public AbstractZosmfRequestRunner()
public T run(ZosmfConnector zosmfConnector)
protected org.apache.http.client.methods.RequestBuilder addHeadersToRequest(org.apache.http.client.methods.RequestBuilder requestBuilder)
protected abstract int[] getSuccessStatus()
protected abstract org.apache.http.client.methods.RequestBuilder prepareQuery(ZosmfConnector zosmfConnector) throws java.net.URISyntaxException, java.io.IOException
java.net.URISyntaxExceptionjava.io.IOExceptionprotected T processResponse(ResponseCache responseCache, java.net.URI uri) throws java.io.IOException
java.io.IOExceptionprotected abstract T getResult(ResponseCache responseCache) throws java.io.IOException
java.io.IOExceptionprotected ZoweApiRestException createException(com.google.gson.JsonObject jsonResponse, int statusCode) throws java.io.IOException
java.io.IOExceptionprotected java.lang.Boolean wasRequestUnauthorised(org.springframework.http.HttpStatus springStatus,
com.google.gson.JsonObject jsonResponse)
protected ZoweApiRestException createGeneralException(ResponseCache responseCache, java.net.URI uri) throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getStringOrNull(com.google.gson.JsonObject json,
java.lang.String key)
protected java.lang.Integer getIntegerOrNull(com.google.gson.JsonObject json,
java.lang.String key)