com.caucho.config.types
Class PathBuilder

java.lang.Object
  extended by com.caucho.config.types.PathBuilder

public class PathBuilder
extends java.lang.Object

Special builder for path variables.


Constructor Summary
PathBuilder()
           
 
Method Summary
 void addText(RawString text)
          Sets the text.
static Path lookupPath(java.lang.String string)
           
static Path lookupPath(java.lang.String string, java.util.ArrayList<?> vars)
           
static Path lookupPath(java.lang.String string, ELContext env)
           
static Path lookupPath(java.lang.String string, ELContext env, Path pwd)
           
static Path lookupPath(java.lang.String string, java.util.Map<java.lang.String,java.lang.Object> map)
           
 Path replaceObject()
          Replace with the real path.
static java.lang.String rewritePathString(java.lang.String pathName)
          Rewrites the path string into proper JSP EL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathBuilder

public PathBuilder()
Method Detail

addText

public void addText(RawString text)
Sets the text.


replaceObject

public Path replaceObject()
                   throws ELException
Replace with the real path.

Throws:
ELException

lookupPath

public static Path lookupPath(java.lang.String string)
                       throws ELException
Throws:
ELException

lookupPath

public static Path lookupPath(java.lang.String string,
                              java.util.ArrayList<?> vars)
                       throws ELException
Throws:
ELException

lookupPath

public static Path lookupPath(java.lang.String string,
                              java.util.Map<java.lang.String,java.lang.Object> map)
                       throws ELException
Throws:
ELException

lookupPath

public static Path lookupPath(java.lang.String string,
                              ELContext env)
                       throws ELException
Throws:
ELException

lookupPath

public static Path lookupPath(java.lang.String string,
                              ELContext env,
                              Path pwd)
                       throws ELException
Throws:
ELException

rewritePathString

public static java.lang.String rewritePathString(java.lang.String pathName)
Rewrites the path string into proper JSP EL. Returns the native path for a configured path name. The special cases $app-dir and $resin-home specify the root directory.

Returns:
a real path corresponding to the path name