com.caucho.vfs
Class SchemeMap

java.lang.Object
  extended by com.caucho.vfs.SchemeMap

public class SchemeMap
extends java.lang.Object

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>
 


Field Summary
static SchemeMap NULL_SCHEME_MAP
           
 
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
 

Field Detail

NULL_SCHEME_MAP

public static final SchemeMap NULL_SCHEME_MAP
Constructor Detail

SchemeMap

public SchemeMap()
Create an empty SchemeMap.

Method Detail

get

public Path get(java.lang.String scheme)
Gets the scheme from the schemeMap.


getSchemeRoot

public SchemeRoot getSchemeRoot(java.lang.String scheme)

put

public Path put(java.lang.String scheme,
                Path path)
Puts a new value in the schemeMap.


put

public SchemeRoot put(java.lang.String scheme,
                      SchemeRoot root)
Puts a new value in the schemeMap.


copy

public SchemeMap copy()

remove

public Path remove(java.lang.String scheme)
Removes value from the schemeMap.