Class HttpUtils

java.lang.Object
net.adoptopenjdk.icedteaweb.http.HttpUtils

public class HttpUtils extends Object
  • Field Details

    • LOG

      private static final Logger LOG
  • Constructor Details

    • HttpUtils

      private HttpUtils()
  • Method Details

    • 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 IOException
      Ensure a CloseableHttpConnection is fully read, required for correct behavior.
      Parameters:
      c - connection to be closed
      Throws:
      IOException - if an I/O exception occurs.
    • lastModifiedDate

      public static String lastModifiedDate(ZonedDateTime time)