public abstract class AbstractZosmfRequestRunner<T>
extends java.lang.Object
| Constructor and Description |
|---|
AbstractZosmfRequestRunner() |
| Modifier and Type | Method and Description |
|---|---|
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) |
T |
run(ZosmfConnector zosmfConnector) |
public T run(ZosmfConnector zosmfConnector)
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 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 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)