Class 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
    • 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

      • sendRequest

        protected org.apache.http.HttpResponse sendRequest​(org.apache.http.client.methods.HttpUriRequest request)
                                                    throws AppException
        Throws:
        AppException