Package java.net

Examples of java.net.URL.toExternalForm()


           
            URL stream_url = file.getStreamURL( feed_url.getHost() );
           
            if ( stream_url != null ){
             
              String url_ext = stream_url.toExternalForm();
               
              pw.println( "<p>" );
             
              pw.println( "<a href=\"" + url_ext + "\">" + escape( file.getName()) + "</a>" );
               
View Full Code Here


               
                URL stream_url = file.getStreamURL( feed_url.getHost() );
               
                if ( stream_url != null ){
                 
                  String url_ext = stream_url.toExternalForm();
                 
                  long fileSize = file.getTargetFile().getLength();
                 
                  pw.println( "<link>" + url_ext + "</link>" );
                 
View Full Code Here

        redirected_url = null;
      }
     
      URL final_url = connection.getURL();
     
      if ( consec_redirect_fails < 10 && !original_url.toExternalForm().equals( final_url.toExternalForm())){
       
        redirected_url = final_url;
      }
     
      last_response  = response;
View Full Code Here

        if ( url == null ){
         
          return;
        }
       
        stream_url = url.toExternalForm();
               
        try{
          if ( file.isComplete()){
           
            target_size = file.getTargetFile().getLength();
View Full Code Here

                          return( null );
                        }
                      }
                    });
                                   
                properties.put( PR_ICON_URL, url.toExternalForm());
               
              }catch( Throwable e ){
               
                Debug.out( e );
              }
View Full Code Here

                          return( sub.getName());
                         
                        }else if (   property_name == SearchResult.PR_DOWNLOAD_LINK ||
                              property_name == SearchResult.PR_DOWNLOAD_BUTTON_LINK ){
                         
                          return( url.toExternalForm());
                         
                        }else if ( property_name == SearchResult.PR_PUB_DATE ){
                         
                          return( new Date(sub.getAddTime()));
                         
View Full Code Here

         
          boolean is_public = l_public==null?true:l_public.longValue()==1;
         
          SubscriptionImpl existing = lookupSingletonRSS(name, url, is_public, check_interval_mins );
         
          if ( UrlFilter.getInstance().urlCanRPC( url.toExternalForm())){
           
            warn_user = false;
          }
         
          if ( existing != null && existing.isSubscribed()){
View Full Code Here

            for (Iterator iter = uris.iterator(); iter.hasNext();) {
                String uri = (String)iter.next();
                BindingHolder hold = getBinding(uri);
                if (hold != root) {
                    URL url = new URL(base, hold.getFileName());
                    if (binding.addIncludePath(url.toExternalForm(), false)) {
                        throw new IllegalStateException("Binding not found when read from file");
                    } else {
                        bindings.add(binding.getExistingIncludeBinding(url));
                    }
                }
View Full Code Here

                }
               
                // access the included binding as input stream
                URL base = binding.getBaseUrl();
                URL url = ClasspathUrlExtender.buildURL(base, m_includePath);
                String path = url.toExternalForm();
                BindingElement root = vctx.getBindingRoot();
                if (root.addIncludePath(path, m_precompiled)) {
                    m_binding = root.getIncludeBinding(url, binding, vctx);
                }
               
View Full Code Here

        try{
            URL  swt_url = SWT.class.getClassLoader().getResource("org/eclipse/swt/SWT.class");
           
            if ( swt_url != null ){
             
              String  url_str = swt_url.toExternalForm();
 
              if ( url_str.startsWith("jar:file:")){
 
                File jar_file = FileUtil.getJarFileFromURL(url_str);
               
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.