Class HttpUtils


  • public class HttpUtils
    extends java.lang.Object
    • Field Detail

      • LOG

        private static final Logger LOG
    • Constructor Detail

      • HttpUtils

        private HttpUtils()
    • Method Detail

      • consumeAndCloseConnectionSilently

        public static void consumeAndCloseConnectionSilently​(CloseableConnection c)
        Ensure a CloseableHttpConnection is fully read, required for correct behavior. Any thrown IOException is consumed and logged
        Parameters:
        c - the connection to be closed silently
      • consumeAndCloseConnection

        public static void consumeAndCloseConnection​(CloseableConnection c)
                                              throws java.io.IOException
        Ensure a CloseableHttpConnection is fully read, required for correct behavior.
        Parameters:
        c - connection to be closed
        Throws:
        java.io.IOException - if an I/O exception occurs.
      • lastModifiedDate

        public static java.lang.String lastModifiedDate​(java.time.ZonedDateTime time)