Package org.eclipse.emf.common.util

Examples of org.eclipse.emf.common.util.URI.host()


      URI uri = URI.createURI(targetNamespace);
      List parsedName;
      if (uri.isHierarchical())
      {
        String host = uri.host();
        if (host != null && host.startsWith("www."))
        {
          host = host.substring(4);
        }
        parsedName = parseNameStatic(host, '.');
View Full Code Here


    
      URI uri = URI.createURI(targetNamespace);
      List parsedName;
      if (uri.isHierarchical())
      {
        String host = uri.host();
        if (host != null && host.startsWith("www."))
        {
          host = host.substring(4);
        }
        parsedName = parseNameStatic(host, '.');
View Full Code Here

    
      URI uri = URI.createURI(targetNamespace);
      List parsedName;
      if (uri.isHierarchical())
      {
        String host = uri.host();
        if (host != null && host.startsWith("www."))
        {
          host = host.substring(4);
        }
        parsedName = parseNameStatic(host, '.');
View Full Code Here

    
      URI uri = URI.createURI(targetNamespace);
      List parsedName;
      if (uri.isHierarchical())
      {
        String host = uri.host();
        if (host != null && host.startsWith("www."))
        {
          host = host.substring(4);
        }
        parsedName = parseNameStatic(host, '.');
View Full Code Here

        //first check the proxy uri if there is one
        String proxyBaseUrl = geoServer.getGlobal().getProxyBaseUrl();
        if (proxyBaseUrl != null) {
            try {
                URI proxyBaseUri = URI.createURI(proxyBaseUrl);
                if(uri.host().equals(proxyBaseUri.host())) {
                    return true;
                }
            }
            catch(IllegalArgumentException e) {
                LOGGER.fine("Unable to parse proxy base url to a uri: " + proxyBaseUrl);
View Full Code Here

  @Override
  public InputStream generate(DynamicFile file, Map<String, Object> data) {
    URI uri = URI.createURI(file.getExecutionURI());
   
    if( "bundleclass".equals(uri.scheme()) ) {
      Bundle b = Platform.getBundle(uri.host());
      try {
        Class<?> cl = b.loadClass(uri.segment(0));
        Generator<DynamicFile> g = (Generator<DynamicFile>) cl.newInstance();
        return g.generate(file, data);
      } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
View Full Code Here

    
      URI uri = URI.createURI(targetNamespace);
      List parsedName;
      if (uri.isHierarchical())
      {
        String host = uri.host();
        if (host != null && host.startsWith("www."))
        {
          host = host.substring(4);
        }
        parsedName = parseNameStatic(host, '.');
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.