Java URL Value Check isHttpUrl(final URL url)

Here you can find the source of isHttpUrl(final URL url)

Description

is Http Url

License

Open Source License

Declaration

public static boolean isHttpUrl(final URL url) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.net.URL;

public class Main {
    public static boolean isHttpUrl(final URL url) {
        final String protocol = url.getProtocol();
        return "http".equalsIgnoreCase(protocol) || "https".equalsIgnoreCase(protocol);
    }//  w w  w.j  a va 2 s .co m
}

Related

  1. isFileURL(URL url)
  2. isHosting(URL url_in)
  3. isHTTP(URL url)
  4. isHttpOk(String url)
  5. isHttpUrl(final URI toCheck)
  6. isHttpUrl(String in)
  7. isHttpUrl(URL url)
  8. isHttpUrl(URL url)
  9. isHttpURLAvailable(final String url)