Class HttpUtils


  • public class HttpUtils
    extends java.lang.Object
    This is HttpUtils.
    Since:
    5.2.0
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpUtils()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(org.apache.http.HttpResponse response)
      Close the response.
      org.springframework.http.HttpHeaders createBasicAuthHeaders​(java.lang.String basicAuthUser, java.lang.String basicAuthPassword)
      Create headers.
      org.springframework.http.HttpHeaders createBasicAuthHeaders​(java.lang.String basicAuthUser, java.lang.String basicAuthPassword, java.lang.String basicCharset)
      Create headers org .
      org.apache.http.HttpResponse execute​(HttpUtils.HttpExecutionRequest execution)
      Execute http request and produce a response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpUtils

        public HttpUtils()
    • Method Detail

      • execute

        public org.apache.http.HttpResponse execute​(HttpUtils.HttpExecutionRequest execution)
        Execute http request and produce a response.
        Parameters:
        execution - the request
        Returns:
        the http response
      • close

        public void close​(org.apache.http.HttpResponse response)
        Close the response.
        Parameters:
        response - the response to close
      • createBasicAuthHeaders

        public org.springframework.http.HttpHeaders createBasicAuthHeaders​(java.lang.String basicAuthUser,
                                                                           java.lang.String basicAuthPassword)
        Create headers.
        Parameters:
        basicAuthUser - the basic auth user
        basicAuthPassword - the basic auth password
        Returns:
        http headers
      • createBasicAuthHeaders

        public org.springframework.http.HttpHeaders createBasicAuthHeaders​(java.lang.String basicAuthUser,
                                                                           java.lang.String basicAuthPassword,
                                                                           java.lang.String basicCharset)
        Create headers org . springframework . http . http headers.
        Parameters:
        basicAuthUser - the basic auth user
        basicAuthPassword - the basic auth password
        basicCharset - The charset used to encode auth header
        Returns:
        the org . springframework . http . http headers