java.lang.Object
org.apache.wicket.util.io.Connections
URLConnection
related utilities- Author:
- igor.vaynberg
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
close
(URLConnection connection) Closes a connectionstatic void
closeQuietly
(URLConnection connection) Closes a connection, ignoring any exceptions if they occurstatic Instant
getLastModified
(URL url) Gets last modified date of the givenURL
-
Method Details
-
getLastModified
Gets last modified date of the givenURL
- Parameters:
url
-- Returns:
- last modified timestamp or
null
if not available - Throws:
IOException
-
closeQuietly
Closes a connection, ignoring any exceptions if they occur- Parameters:
connection
-
-
close
Closes a connection- Parameters:
connection
-- Throws:
IOException
-