public class SchemeMap
extends java.lang.Object
The default scheme has a number of standard filesystems, file:, mailto:, jndi:, http:.
Applications can add schemes in the configuration file. When first
accessed, the SchemeMap will look in the Registry to match the scheme.
If the new scheme exists, it will instantiate a single root instance and
use that for the remainder of the application.
<caucho.com>
<vfs scheme="foo" class-name="test.vfs.FooPath"/>
</caucho.com>
Constructor and Description |
---|
SchemeMap()
Create an empty SchemeMap.
|
Modifier and Type | Method and Description |
---|---|
SchemeMap |
copy() |
Path |
get(java.lang.String scheme)
Gets the scheme from the schemeMap.
|
SchemeRoot |
getSchemeRoot(java.lang.String scheme) |
Path |
put(java.lang.String scheme,
Path path)
Puts a new value in the schemeMap.
|
SchemeRoot |
put(java.lang.String scheme,
SchemeRoot root)
Puts a new value in the schemeMap.
|
Path |
remove(java.lang.String scheme)
Removes value from the schemeMap.
|
public Path get(java.lang.String scheme)
public SchemeRoot getSchemeRoot(java.lang.String scheme)
public SchemeRoot put(java.lang.String scheme, SchemeRoot root)
public SchemeMap copy()
public Path remove(java.lang.String scheme)