org.netbeans.core.startup/1 1.40

org.netbeans.core.startup.layers
Class NbinstURLMapper

java.lang.Object
  extended by org.openide.filesystems.URLMapper
      extended by org.netbeans.core.startup.layers.NbinstURLMapper

public class NbinstURLMapper
extends URLMapper

URLMapper for the nbinst URL protocol. The mapper handles only the translation from URL into FileObjects. The opposite conversion is not needed, it is handled by the default URLMapper. The format of the nbinst URL is nbinst://host/path. The host part is optional, if presents it specifies the name of the supplying module. The path is mandatory and specifies the relative path from the ${netbeans.home}, ${netbeans.user} or ${netbeans.dirs}.


Field Summary
static String PROTOCOL
           
 
Fields inherited from class org.openide.filesystems.URLMapper
EXTERNAL, INTERNAL, NETWORK
 
Constructor Summary
NbinstURLMapper()
          Creates a new instance of NbInstURLMapper
 
Method Summary
 FileObject[] getFileObjects(URL url)
          Returns FileObjects for given URL
 URL getURL(FileObject fo, int type)
          Returns null, the translation into URL is doen by default URLMapper
 
Methods inherited from class org.openide.filesystems.URLMapper
findFileObject, findFileObjects, findURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

public static final String PROTOCOL
See Also:
Constant Field Values
Constructor Detail

NbinstURLMapper

public NbinstURLMapper()
Creates a new instance of NbInstURLMapper

Method Detail

getFileObjects

public FileObject[] getFileObjects(URL url)
Returns FileObjects for given URL

Specified by:
getFileObjects in class URLMapper
Parameters:
url - the URL for which the FileObjects should be find.
Returns:
FileObject[], returns null in case of unknown protocol.

getURL

public URL getURL(FileObject fo,
                  int type)
Returns null, the translation into URL is doen by default URLMapper

Specified by:
getURL in class URLMapper

org.netbeans.core.startup/1 1.40

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.