public class URLUtils extends Object
public static boolean isOnline(String url) throws MalformedURLException
url
- input URL.true
if the resource can be accessed, false
otherwise.MalformedURLException
- if url
is malformed.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.