Package java.net

Examples of java.net.URL.toExternalForm()


      URL theURL = new URL("http://" + webServiceHost + ":" + webServicePort);
      if (Boolean.valueOf(properties.getProperty(BPELEngineImpl.BPEL_WEBSERVICE_SECURE, "false"))) {
        int secureWebServicePort = serverConfig.getWebServicePort();
        theURL = new URL("https://" + webServiceHost + ":" + secureWebServicePort);
      }
      return theURL.toExternalForm();
    } catch (MalformedURLException e) {
      log.error("Error in constructing the webservice base url.", e);
      return null;
    }
  }
View Full Code Here


   * @return String
   */
  public String getStart() {
    URL url = getStartURL();
    if (url != null) {
      return url.toExternalForm();
    } else {
      return null;
    }
  }

View Full Code Here

              int secureWebServicePort = serverConfig.getWebServicePort();
              url = new URL("https://" + webServiceHost + ":" + secureWebServicePort);
            }
            //give the user the option to override
            if (_odeConfig.getProperty(BPEL_WEBSERVICE_BASEURL)==null) {
              _odeConfig.getProperties().setProperty(BPEL_WEBSERVICE_BASEURL, url.toExternalForm());
            }
            _uddiRegistration = UDDIClientFactory.newInstance(_odeConfig.getProperties());
        } catch (Exception e) {
          __log.error(e.getMessage());
          __log.error("Continuing without UDDI integration.");
View Full Code Here

       
          URL url = cla.getClassLoader().getResource( str );
         
          if ( url != null ){
           
            String  url_str = url.toExternalForm();
 
            if ( url_str.startsWith("jar:file:")){
 
              File jar_file = FileUtil.getJarFileFromURL(url_str);
             
View Full Code Here

      if (TRACE_MULTIHITS && internedEntry.hits % 10 == 0)
        System.out.println("multihit " + internedEntry);
    }
   
    // should not happen
    if(!toIntern.toExternalForm().equals(internedURL.toExternalForm()))
      System.err.println("mismatch");
   
    return internedURL;
  }
 
View Full Code Here

        }
        if ( my == null || other == null ){
          return( false );
        }
        // use string compare as URL.equals tries to resolve hostnames
        return my.toExternalForm().equals(other.toExternalForm());
      }
      return false;
    }

    public String toString() {
View Full Code Here

   
    if ( url != null ){
     
      synchronized( this ){
       
        String key = url.toExternalForm();
       
        StatusSummary summary = recent_responses.get( key );
     
        if ( summary != null ){
       
View Full Code Here

     
      URL  u = response.getURL();
     
      if ( u != null ){
       
        String s = u.toExternalForm();
       
        synchronized( failed_urls ){
         
          if ( failed_urls.contains( s )){
           
View Full Code Here

            if (uri == null) {
                return;
            }
            is = uri.openStream();
            InputSource ip = new InputSource(is);
            ip.setSystemId(uri.toExternalForm());

            // Parse the web application deployment descriptor
            TreeNode webtld = null;
            // altDDName is the absolute path of the DD
            if (altDDName != null) {
View Full Code Here

        } catch (ParseException e) {
          throw new RuntimeException(e);
        }
      }
      Model model = ModelFactory.createDefaultModel();
      model.read(connection.getInputStream(), sliceURL.toExternalForm());
      // model.write(System.out);
      return new SliceResponse(model, nextFollowing);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
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.