|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.vfs.Path
com.caucho.vfs.FilesystemPath
com.caucho.vfs.JndiPath
public class JndiPath
Adapts the JNDI to the Path API. The name separator is always '/'.
Field Summary | |
---|---|
protected static L10N |
L
|
protected static java.util.logging.Logger |
log
|
Fields inherited from class com.caucho.vfs.FilesystemPath |
---|
_bindRoot, _pathname, _root, _userPath |
Fields inherited from class com.caucho.vfs.Path |
---|
_pathSeparatorChar, _schemeMap, _separatorChar |
Constructor Summary | |
---|---|
|
JndiPath()
Creates a new JndiPath root. |
protected |
JndiPath(FilesystemPath root,
java.lang.String userPath,
java.lang.String path)
Create a new JndiPath with the given name. |
Method Summary | |
---|---|
Path |
fsWalk(java.lang.String userPath,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.lang.String path)
Walking down the path just stores the new name in the created Path. |
java.lang.Object |
getObject()
Returns the object bound at this path. |
java.lang.String |
getScheme()
The scheme is always "jndi:". |
boolean |
mkdir()
Create a new subcontext |
void |
setObject(java.lang.Object value)
Sets the object bound at this path. |
Methods inherited from class com.caucho.vfs.FilesystemPath |
---|
bind, createRoot, equals, getFullPath, getParent, getPath, getRoot, getTail, getUserPath, hashCode, init, normalizePath, normalizePath, schemeWalk, setUserPath |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger log
protected static final L10N L
Constructor Detail |
---|
public JndiPath()
protected JndiPath(FilesystemPath root, java.lang.String userPath, java.lang.String path)
Method Detail |
---|
public Path fsWalk(java.lang.String userPath, java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.String path)
fsWalk
in class FilesystemPath
userPath
- the string used in the lookup
call.attributes
- any inherited attributes.path
- the normalized slash-separated path.
public java.lang.String getScheme()
getScheme
in class Path
public boolean mkdir() throws java.io.IOException
mkdir
in class Path
java.io.IOException
public java.lang.Object getObject() throws java.io.IOException
getObject
in class Path
java.io.IOException
public void setObject(java.lang.Object value) throws java.io.IOException
setObject
in class Path
value
- the new value
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |