java.lang.Object
org.apache.wicket.util.io.Connections
URLConnection related utilities- Author:
- igor.vaynberg
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose(URLConnection connection) Closes a connectionstatic voidcloseQuietly(URLConnection connection) Closes a connection, ignoring any exceptions if they occurstatic InstantgetLastModified(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
nullif not available - Throws:
IOException
-
closeQuietly
Closes a connection, ignoring any exceptions if they occur- Parameters:
connection-
-
close
Closes a connection- Parameters:
connection-- Throws:
IOException
-