|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.vfs.SchemeMap
public class SchemeMap
The top-level filesystem schemes are collected into a single map.
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 Summary | |
---|---|
SchemeMap()
Create an empty SchemeMap. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemeMap()
Method Detail |
---|
public Path get(java.lang.String scheme)
public SchemeRoot getSchemeRoot(java.lang.String scheme)
public Path put(java.lang.String scheme, Path path)
public SchemeRoot put(java.lang.String scheme, SchemeRoot root)
public SchemeMap copy()
public Path remove(java.lang.String scheme)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |