Java Doc for ProcessEnvironment.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » tomcat catalina » org.apache.catalina.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.util.ProcessEnvironment

All known Subclasses:   org.apache.catalina.util.CGIProcessEnvironment,
ProcessEnvironment
public class ProcessEnvironment (Code)
Encapsulates the Process environment and rules to derive that environment from the servlet container and request information.
author:
   Martin Dengler [root@martindengler.com]
version:
   $Revision: 1.4 $, $Date: 2004/05/26 16:21:04 $
since:
   Tomcat 4.0


Field Summary
protected  Stringcommand
    
protected  intdebug
     the debugging detail level for this instance.
protected  Hashtableenv
    
protected  StringpathInfo
    
protected  booleanvalid
    
protected  FileworkingDirectory
    

Constructor Summary
public  ProcessEnvironment(HttpServletRequest req, ServletContext context)
     Creates a ProcessEnvironment and derives the necessary environment, working directory, command, etc.
public  ProcessEnvironment(HttpServletRequest req, ServletContext context, int debug)
     Creates a ProcessEnvironment and derives the necessary environment, working directory, command, etc.

Method Summary
protected  StringblanksToString(String couldBeBlank, String subForBlanks)
    
protected  booleanderiveProcessEnvironment(HttpServletRequest req)
     Constructs the Process environment to be supplied to the invoked process.
public  StringgetCommand()
    
public  ServletContextgetContext()
    
public  StringgetContextPath()
    
public  HashtablegetEnvironment()
    
public  StringgetServletPath()
    
public  StringgetWebAppRootDir()
    
public  FilegetWorkingDirectory()
    
public  booleanisValid()
    
protected  voidlog(String s)
    
protected  StringnullsToBlanks(String s)
    
protected  StringnullsToString(String couldBeNull, String subForNulls)
    
protected  StringsetCommand(String command)
    
public  HashtablesetEnvironment(Hashtable env)
    
protected  voidsetupFromContext(ServletContext context)
    
protected  voidsetupFromRequest(HttpServletRequest req)
    
public  StringtoString()
    

Field Detail
command
protected String command(Code)
command to be invoked



debug
protected int debug(Code)
the debugging detail level for this instance.



env
protected Hashtable env(Code)
derived process environment



pathInfo
protected String pathInfo(Code)
pathInfo for the current request



valid
protected boolean valid(Code)
whether or not this object is valid or not



workingDirectory
protected File workingDirectory(Code)
process' desired working directory




Constructor Detail
ProcessEnvironment
public ProcessEnvironment(HttpServletRequest req, ServletContext context)(Code)
Creates a ProcessEnvironment and derives the necessary environment, working directory, command, etc.
Parameters:
  req - HttpServletRequest for information provided bythe Servlet API
Parameters:
  context - ServletContext for information provided bythe Servlet API



ProcessEnvironment
public ProcessEnvironment(HttpServletRequest req, ServletContext context, int debug)(Code)
Creates a ProcessEnvironment and derives the necessary environment, working directory, command, etc.
Parameters:
  req - HttpServletRequest for information provided bythe Servlet API
Parameters:
  context - ServletContext for information provided bythe Servlet API
Parameters:
  debug - int debug level (0 == none, 4 == medium, 6 == lots)




Method Detail
blanksToString
protected String blanksToString(String couldBeBlank, String subForBlanks)(Code)
Converts blank strings to another string
Parameters:
  couldBeBlank - string to be converted if necessary
Parameters:
  subForBlanks - string to return instead of a blank string a non-null string, either the original or the substitutestring if the original was null or empty ("")



deriveProcessEnvironment
protected boolean deriveProcessEnvironment(HttpServletRequest req)(Code)
Constructs the Process environment to be supplied to the invoked process. Defines an environment no environment variables.

Should be overriden by subclasses to perform useful setup.


Parameters:
  req - request associated with theProcess' invocation true if environment was set OK, false if there was a problemand no environment was set



getCommand
public String getCommand()(Code)
Gets derived command string command string



getContext
public ServletContext getContext()(Code)



getContextPath
public String getContextPath()(Code)



getEnvironment
public Hashtable getEnvironment()(Code)
Gets process' environment process' environment



getServletPath
public String getServletPath()(Code)



getWebAppRootDir
public String getWebAppRootDir()(Code)
Gets the root directory of the web application to which this process\ belongs root directory



getWorkingDirectory
public File getWorkingDirectory()(Code)
Gets this process' derived working directory working directory



isValid
public boolean isValid()(Code)
Gets validity status true if this environment is valid, false otherwise



log
protected void log(String s)(Code)



nullsToBlanks
protected String nullsToBlanks(String s)(Code)
Converts null strings to blank strings ("")
Parameters:
  s - string to be converted if necessary a non-null string, either the original or the empty string("") if the original was null



nullsToString
protected String nullsToString(String couldBeNull, String subForNulls)(Code)
Converts null strings to another string
Parameters:
  couldBeNull - string to be converted if necessary
Parameters:
  subForNulls - string to return instead of a null string a non-null string, either the original or the substitutestring if the original was null



setCommand
protected String setCommand(String command)(Code)
Sets the desired command string
Parameters:
  command - String command as desired command string



setEnvironment
public Hashtable setEnvironment(Hashtable env)(Code)
Sets process' environment
Parameters:
  env - process' environment Hashtable to which the process' environment was set



setupFromContext
protected void setupFromContext(ServletContext context)(Code)
Uses the ServletContext to set some process variables
Parameters:
  context - ServletContext for information provided bythe Servlet API



setupFromRequest
protected void setupFromRequest(HttpServletRequest req)(Code)
Uses the HttpServletRequest to set most process variables
Parameters:
  req - HttpServletRequest for information provided bythe Servlet API



toString
public String toString()(Code)
Print important process environment information in an easy-to-read HTML table HTML string containing process environment info



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.