Class HttpClientUtils


  • public class HttpClientUtils
    extends Object
    The type Http client utils.
    • Constructor Detail

      • HttpClientUtils

        public HttpClientUtils()
    • Method Detail

      • get

        public HttpResponseEntity get​(String url)
        Get http response entity.
        Parameters:
        url - the url
        Returns:
        the http response entity
      • get

        public HttpResponseEntity get​(String url,
                                      Map<String,​Object> queryParams)
        Get http response entity.
        Parameters:
        url - the url
        queryParams - the query params
        Returns:
        the http response entity
      • post

        public HttpResponseEntity post​(String url)
        Post http response entity.
        Parameters:
        url - the url
        Returns:
        the http response entity
      • post

        public HttpResponseEntity post​(String url,
                                       Map<String,​Object> queryParams)
        Post http response entity.
        Parameters:
        url - the url
        queryParams - the query params
        Returns:
        the http response entity
      • post

        public HttpResponseEntity post​(String url,
                                       Map<String,​String> headers,
                                       String body)
        Post http response entity.
        Parameters:
        url - the url
        headers - the headers
        body - the body
        Returns:
        the http response entity
      • put

        public HttpResponseEntity put​(String url)
        Put http response entity.
        Parameters:
        url - the url
        Returns:
        the http response entity
      • put

        public HttpResponseEntity put​(String url,
                                      Map<String,​Object> queryParams)
        Put http response entity.
        Parameters:
        url - the url
        queryParams - the query params
        Returns:
        the http response entity
      • delete

        public HttpResponseEntity delete​(String url)
        Delete http response entity.
        Parameters:
        url - the url
        Returns:
        the http response entity
      • delete

        public HttpResponseEntity delete​(String url,
                                         Map<String,​Object> queryParams)
        Delete http response entity.
        Parameters:
        url - the url
        queryParams - the query params
        Returns:
        the http response entity