Examples of toExternalForm()


Examples of java.net.URL.toExternalForm()

     
      if ( initial_url.getProtocol().equalsIgnoreCase( "file" )){
       
          // handle file://c:/ - map to file:/c:/
       
        String  str = initial_url.toExternalForm();
       
        if ( initial_url.getAuthority() != null ){
       
          str = str.replaceFirst( "://", ":/" );
        }
View Full Code Here

Examples of java.net.URL.toExternalForm()

         
          URL cdp_link = item.getLink();
         
          if ( cdp_link != null ){
         
            result.setCDPLink(cdp_link.toExternalForm());
          }
         
          String uid = item.getUID();
         
          if ( uid != null ){
View Full Code Here

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

Examples of java.net.URL.toExternalForm()

               
                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

Examples of java.net.URL.toExternalForm()

        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

Examples of java.net.URL.toExternalForm()

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

Examples of java.net.URL.toExternalForm()

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

Examples of java.net.URL.toExternalForm()

                          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

Examples of java.net.URL.toExternalForm()

         
          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

Examples of java.net.URL.toExternalForm()

            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
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.