1 24 25 26 package org.netbeans.modules.javadoc.httpfs; 27 28 import java.net.URL ; 29 import org.openide.filesystems.*; 30 31 32 35 public class HTTPURLMapper 36 extends URLMapper { 37 38 41 public HTTPURLMapper( 42 ) { 43 44 46 } 47 48 49 56 public FileObject[] getFileObjects( 57 URL fileURL 58 ) { 59 60 return null; 61 62 } 63 64 65 71 public URL getURL( 72 FileObject file, 73 int urlType 74 ) { 75 76 URL returnURL; 78 79 80 if( file instanceof HTTPFileObject && ( urlType == EXTERNAL || urlType == NETWORK ) ) { 81 82 returnURL = ((HTTPFileObject)file).fileURL; 83 84 } else { 85 86 returnURL = null; 87 88 } 89 return returnURL; 90 91 } 92 93 } 94 | Popular Tags |