Java URI Value Check isRemoteNamespace(URI ns)

Here you can find the source of isRemoteNamespace(URI ns)

Description

is Remote Namespace

License

Open Source License

Declaration

public static boolean isRemoteNamespace(URI ns) 

Method Source Code

//package com.java2s;
/**/*from  www.j a  v  a  2 s .  c  om*/
 * Copyright (C) 2010-2014 Fabric project group, Cornell University
 *
 * This file is part of Fabric.
 *
 * Fabric is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 2 of the License, or (at your option) any later
 * version.
 * 
 * Fabric is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 */

import java.net.URI;

public class Main {
    public static boolean isRemoteNamespace(URI ns) {
        return ns.getScheme().equals("fab") && !ns.isOpaque();
    }
}

Related

  1. isOriginForm(URI uri)
  2. isPrefix(final URI source, final URI other)
  3. isProjectCacheURI(java.net.URI uri)
  4. isRedirectEndpointUriValid(String redirectUri)
  5. isRedisSSLScheme(URI uri)
  6. isResolvable(URI toCheck)
  7. isResource(URI uri)
  8. isResourceLocalToServer(URI resourceUri, URI serverUri)
  9. isRoot(URI base)