|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.util.ProcessEnvironment
Encapsulates the Process environment and rules to derive that environment from the servlet container and request information.
Field Summary | |
protected java.lang.String |
command
Deprecated. command to be invoked |
protected int |
debug
Deprecated. the debugging detail level for this instance. |
protected java.util.Hashtable |
env
Deprecated. derived process environment |
protected java.lang.String |
pathInfo
Deprecated. pathInfo for the current request |
protected boolean |
valid
Deprecated. whether or not this object is valid or not |
protected java.io.File |
workingDirectory
Deprecated. process' desired working directory |
Constructor Summary | |
ProcessEnvironment(javax.servlet.http.HttpServletRequest req,
javax.servlet.ServletContext context)
Deprecated. Creates a ProcessEnvironment and derives the necessary environment, working directory, command, etc. |
|
ProcessEnvironment(javax.servlet.http.HttpServletRequest req,
javax.servlet.ServletContext context,
int debug)
Deprecated. Creates a ProcessEnvironment and derives the necessary environment, working directory, command, etc. |
Method Summary | |
protected java.lang.String |
blanksToString(java.lang.String couldBeBlank,
java.lang.String subForBlanks)
Deprecated. Converts blank strings to another string |
protected boolean |
deriveProcessEnvironment(javax.servlet.http.HttpServletRequest req)
Deprecated. Constructs the Process environment to be supplied to the invoked process. |
java.lang.String |
getCommand()
Deprecated. Gets derived command string |
javax.servlet.ServletContext |
getContext()
Deprecated. |
java.lang.String |
getContextPath()
Deprecated. |
java.util.Hashtable |
getEnvironment()
Deprecated. Gets process' environment |
java.lang.String |
getServletPath()
Deprecated. |
java.lang.String |
getWebAppRootDir()
Deprecated. Gets the root directory of the web application to which this process\ belongs |
java.io.File |
getWorkingDirectory()
Deprecated. Gets this process' derived working directory |
boolean |
isValid()
Deprecated. Gets validity status |
protected java.lang.String |
nullsToBlanks(java.lang.String s)
Deprecated. Converts null strings to blank strings ("") |
protected java.lang.String |
nullsToString(java.lang.String couldBeNull,
java.lang.String subForNulls)
Deprecated. Converts null strings to another string |
protected java.lang.String |
setCommand(java.lang.String command)
Deprecated. Sets the desired command string |
java.util.Hashtable |
setEnvironment(java.util.Hashtable env)
Deprecated. Sets process' environment |
protected void |
setupFromContext(javax.servlet.ServletContext context)
Deprecated. Uses the ServletContext to set some process variables |
protected void |
setupFromRequest(javax.servlet.http.HttpServletRequest req)
Deprecated. Uses the HttpServletRequest to set most process variables |
java.lang.String |
toString()
Deprecated. Print important process environment information in an easy-to-read HTML table |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String pathInfo
protected java.util.Hashtable env
protected java.lang.String command
protected boolean valid
protected int debug
protected java.io.File workingDirectory
Constructor Detail |
public ProcessEnvironment(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletContext context)
req
- HttpServletRequest for information provided by
the Servlet APIcontext
- ServletContext for information provided by
the Servlet APIpublic ProcessEnvironment(javax.servlet.http.HttpServletRequest req, javax.servlet.ServletContext context, int debug)
req
- HttpServletRequest for information provided by
the Servlet APIcontext
- ServletContext for information provided by
the Servlet APIdebug
- int debug level (0 == none, 4 == medium, 6 == lots)Method Detail |
protected void setupFromContext(javax.servlet.ServletContext context)
context
- ServletContext for information provided by
the Servlet APIprotected void setupFromRequest(javax.servlet.http.HttpServletRequest req)
req
- HttpServletRequest for information provided by
the Servlet APIpublic java.lang.String toString()
public java.lang.String getCommand()
protected java.lang.String setCommand(java.lang.String command)
command
- String command as desired
public java.io.File getWorkingDirectory()
public java.util.Hashtable getEnvironment()
public java.util.Hashtable setEnvironment(java.util.Hashtable env)
env
- process' environment
public boolean isValid()
protected java.lang.String nullsToBlanks(java.lang.String s)
s
- string to be converted if necessary
null
protected java.lang.String nullsToString(java.lang.String couldBeNull, java.lang.String subForNulls)
couldBeNull
- string to be converted if necessarysubForNulls
- string to return instead of a null string
null
protected java.lang.String blanksToString(java.lang.String couldBeBlank, java.lang.String subForBlanks)
couldBeBlank
- string to be converted if necessarysubForBlanks
- string to return instead of a blank string
null
or empty ("")protected boolean deriveProcessEnvironment(javax.servlet.http.HttpServletRequest req)
Should be overriden by subclasses to perform useful setup.
req
- request associated with the
Process' invocation
public java.lang.String getWebAppRootDir()
public java.lang.String getContextPath()
public javax.servlet.ServletContext getContext()
public java.lang.String getServletPath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |