org.netbeans.core.startup.layers
Class NbinstURLMapper
java.lang.Object
org.openide.filesystems.URLMapper
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}.
|
Constructor Summary |
NbinstURLMapper()
Creates a new instance of NbInstURLMapper |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROTOCOL
public static final String PROTOCOL
- See Also:
- Constant Field Values
NbinstURLMapper
public NbinstURLMapper()
- Creates a new instance of NbInstURLMapper
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