Java URI Value Check isAnyAddress(final URI u)

Here you can find the source of isAnyAddress(final URI u)

Description

is Any Address

License

Apache License

Declaration

public static boolean isAnyAddress(final URI u) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.net.URI;

public class Main {
    public static boolean isAnyAddress(final URI u) {
        return u.getHost() == null && (u.getAuthority().equals("*") || u.getAuthority().startsWith("*:"));
    }/*from www.ja  v a  2s  . c om*/
}

Related

  1. isAbsoluteURI(String path)
  2. isAbsoluteURI(String uri)
  3. isAbsoluteUri(String uriAsString)
  4. isAvailable(URI address)
  5. isBagUri(final URI uri)
  6. isBase(URI base, URI uri)
  7. isDefaultPort(URI uri)