Java URL Value Check isLocalURL(String s)

Here you can find the source of isLocalURL(String s)

Description

is Local URL

License

Open Source License

Declaration

static boolean isLocalURL(String s) 

Method Source Code

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

import java.net.URL;

public class Main {
    static boolean isLocalURL(String s) {
        return s != null && s.startsWith("http://localboard/");
    }/*from  w w  w  . j ava 2  s  .com*/

    static boolean isLocalURL(URL url) {
        return url != null && "localboard".equals(url.getHost());
    }
}

Related

  1. isLocalFile(URL url)
  2. isLocalFile(URL url)
  3. isLocalFile(URL url)
  4. isLocalFile(URL url)
  5. isLocalhost(URL url)
  6. isLocalURL(URL url)
  7. isLocalURL(URL url)
  8. isNewer(URL file, URL reference)
  9. isResponseCode(String url, int expectedCode)