Java URL Value Check isUrl(String value)

Here you can find the source of isUrl(String value)

Description

is Url

License

Open Source License

Declaration

public static boolean isUrl(String value) 

Method Source Code


//package com.java2s;
import java.net.MalformedURLException;

public class Main {

    public static boolean isUrl(String value) {
        try {/*from  ww w  .ja va  2 s  .co m*/
            new java.net.URL(value);
        } catch (MalformedURLException e) {
            return false;
        }
        return true;
    }
}

Related

  1. isUrl(String resourceLocation)
  2. isUrl(String s)
  3. isUrl(String s)
  4. isURL(String str)
  5. isURL(String token)
  6. isURLAccessible(String URL)
  7. isURLAvailable(String url, int timeout)
  8. isUrlAvailable(URL url, Proxy proxy)
  9. isUrlDownWithRetries(String url, long timeoutMs, long retryDelayMs)