org.apache.wicket.util.io
Class Connections

java.lang.Object
  extended by org.apache.wicket.util.io.Connections

public class Connections
extends Object

URLConnection related utilities

Author:
igor.vaynberg

Method Summary
static void close(URLConnection connection)
          Closes a connection
static void closeQuietly(URLConnection connection)
          Closes a connection, ignoring any exceptions if they occur
static long getLastModified(URL url)
          Gets last modified date of the given URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLastModified

public static long getLastModified(URL url)
                            throws IOException
Gets last modified date of the given URL

Parameters:
url -
Returns:
last modified timestamp
Throws:
IOException

closeQuietly

public static void closeQuietly(URLConnection connection)
Closes a connection, ignoring any exceptions if they occur

Parameters:
connection -

close

public static void close(URLConnection connection)
                  throws IOException
Closes a connection

Parameters:
connection -
Throws:
IOException


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.