Package org.apache.wicket.util.io
Class Connections
- java.lang.Object
-
- org.apache.wicket.util.io.Connections
-
public class Connections extends java.lang.ObjectURLConnectionrelated utilities- Author:
- igor.vaynberg
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(java.net.URLConnection connection)Closes a connectionstatic voidcloseQuietly(java.net.URLConnection connection)Closes a connection, ignoring any exceptions if they occurstatic TimegetLastModified(java.net.URL url)Gets last modified date of the givenURL
-
-
-
Method Detail
-
getLastModified
public static Time getLastModified(java.net.URL url) throws java.io.IOException
Gets last modified date of the givenURL- Parameters:
url-- Returns:
- last modified timestamp or
nullif not available - Throws:
java.io.IOException
-
closeQuietly
public static void closeQuietly(java.net.URLConnection connection)
Closes a connection, ignoring any exceptions if they occur- Parameters:
connection-
-
close
public static void close(java.net.URLConnection connection) throws java.io.IOExceptionCloses a connection- Parameters:
connection-- Throws:
java.io.IOException
-
-