Package com.axway.apim.lib.utils.rest
Class RestAPICall
- java.lang.Object
-
- com.axway.apim.lib.utils.rest.RestAPICall
-
- Direct Known Subclasses:
DELRequest,GETRequest,POSTRequest,PUTRequest
public abstract class RestAPICall extends Object
Encapsulates logic to perform REST-API Calls to the API-Manager REST-API. For instance it's handling the CSRF-Tokens. More important is the implementation of ParseResponse. For every API-Call the implementing class can override the ParseResponse method, which can be used to validate the expected output.- Author:
- cwiechmann@axway.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRestAPICall(org.apache.http.HttpEntity entity, URI uri)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.apache.http.HttpResponseexecute()protected org.apache.http.HttpResponsesendRequest(org.apache.http.client.methods.HttpUriRequest request)
-
-
-
Field Detail
-
entity
protected org.apache.http.HttpEntity entity
-
uri
protected URI uri
-
target
protected org.apache.http.HttpHost target
-
-
Constructor Detail
-
RestAPICall
protected RestAPICall(org.apache.http.HttpEntity entity, URI uri)
-
-
Method Detail
-
execute
public abstract org.apache.http.HttpResponse execute() throws AppException- Throws:
AppException
-
sendRequest
protected org.apache.http.HttpResponse sendRequest(org.apache.http.client.methods.HttpUriRequest request) throws AppException- Throws:
AppException
-
-