Class HttpRequestHelper

  • All Implemented Interfaces:

    
    public class HttpRequestHelper
    
                        

    Wrapper created to abstract HTTP requests.

    • Method Detail

      • doGetCall

         Unit doGetCall(String urlString, HttpResponseListener listener, Integer timeout, Long ifModifiedSince)

        Method used to do GET calls

        Parameters:
        urlString - URL to call
        listener - listener receiving request response
        timeout - request timeout
        ifModifiedSince - Timestamp (in ms) for the If-Modified-Since header, or 0.
      • doPostCall

         Unit doPostCall(String urlString, String content, HttpResponseListener listener, Integer timeout)

        Method used to do POST calls

        Parameters:
        urlString - URL to call
        content - body content (mandatory)
        listener - listener receiving request response
        timeout - request timeout