Java Doc for JspCServletContext.java in  » Sevlet-Container » apache-tomcat-6.0.14 » org » apache » jasper » servlet » 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 » apache tomcat 6.0.14 » org.apache.jasper.servlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jasper.servlet.JspCServletContext

JspCServletContext
public class JspCServletContext implements ServletContext(Code)
Simple ServletContext implementation without HTTP-specific methods.
author:
   Peter Rossbach (pr@webapp.de)


Field Summary
protected  HashtablemyAttributes
     Servlet context attributes.
protected  PrintWritermyLogWriter
     The log writer we will write log messages to.
protected  URLmyResourceBaseURL
     The base URL (document root) for this context.

Constructor Summary
public  JspCServletContext(PrintWriter aLogWriter, URL aResourceBaseURL)
     Create a new instance of this ServletContext implementation.

Method Summary
public  ObjectgetAttribute(String name)
     Return the specified context attribute, if any.
public  EnumerationgetAttributeNames()
     Return an enumeration of context attribute names.
public  ServletContextgetContext(String uripath)
     Return the servlet context for the specified path.
public  StringgetContextPath()
     Return the context path.
public  StringgetInitParameter(String name)
     Return the specified context initialization parameter.
public  EnumerationgetInitParameterNames()
     Return an enumeration of the names of context initialization parameters.
public  intgetMajorVersion()
     Return the Servlet API major version number.
public  StringgetMimeType(String file)
     Return the MIME type for the specified filename.
public  intgetMinorVersion()
     Return the Servlet API minor version number.
public  RequestDispatchergetNamedDispatcher(String name)
     Return a request dispatcher for the specified servlet name.
public  StringgetRealPath(String path)
     Return the real path for the specified context-relative virtual path.
public  RequestDispatchergetRequestDispatcher(String path)
     Return a request dispatcher for the specified context-relative path.
public  URLgetResource(String path)
     Return a URL object of a resource that is mapped to the specified context-relative path.
public  InputStreamgetResourceAsStream(String path)
     Return an InputStream allowing access to the resource at the specified context-relative path.
public  SetgetResourcePaths(String path)
     Return the set of resource paths for the "directory" at the specified context path.
public  StringgetServerInfo()
     Return descriptive information about this server.
public  ServletgetServlet(String name)
     Return a null reference for the specified servlet name.
public  StringgetServletContextName()
     Return the name of this servlet context.
public  EnumerationgetServletNames()
     Return an empty enumeration of servlet names.
public  EnumerationgetServlets()
     Return an empty enumeration of servlets.
public  voidlog(String message)
     Log the specified message.
public  voidlog(Exception exception, String message)
     Log the specified message and exception.
public  voidlog(String message, Throwable exception)
     Log the specified message and exception.
public  voidremoveAttribute(String name)
     Remove the specified context attribute.
public  voidsetAttribute(String name, Object value)
     Set or replace the specified context attribute.

Field Detail
myAttributes
protected Hashtable myAttributes(Code)
Servlet context attributes.



myLogWriter
protected PrintWriter myLogWriter(Code)
The log writer we will write log messages to.



myResourceBaseURL
protected URL myResourceBaseURL(Code)
The base URL (document root) for this context.




Constructor Detail
JspCServletContext
public JspCServletContext(PrintWriter aLogWriter, URL aResourceBaseURL)(Code)
Create a new instance of this ServletContext implementation.
Parameters:
  aLogWriter - PrintWriter which is used for log() calls
Parameters:
  aResourceBaseURL - Resource base URL




Method Detail
getAttribute
public Object getAttribute(String name)(Code)
Return the specified context attribute, if any.
Parameters:
  name - Name of the requested attribute



getAttributeNames
public Enumeration getAttributeNames()(Code)
Return an enumeration of context attribute names.



getContext
public ServletContext getContext(String uripath)(Code)
Return the servlet context for the specified path.
Parameters:
  uripath - Server-relative path starting with '/'



getContextPath
public String getContextPath()(Code)
Return the context path.



getInitParameter
public String getInitParameter(String name)(Code)
Return the specified context initialization parameter.
Parameters:
  name - Name of the requested parameter



getInitParameterNames
public Enumeration getInitParameterNames()(Code)
Return an enumeration of the names of context initialization parameters.



getMajorVersion
public int getMajorVersion()(Code)
Return the Servlet API major version number.



getMimeType
public String getMimeType(String file)(Code)
Return the MIME type for the specified filename.
Parameters:
  file - Filename whose MIME type is requested



getMinorVersion
public int getMinorVersion()(Code)
Return the Servlet API minor version number.



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)(Code)
Return a request dispatcher for the specified servlet name.
Parameters:
  name - Name of the requested servlet



getRealPath
public String getRealPath(String path)(Code)
Return the real path for the specified context-relative virtual path.
Parameters:
  path - The context-relative virtual path to resolve



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)
Return a request dispatcher for the specified context-relative path.
Parameters:
  path - Context-relative path for which to acquire a dispatcher



getResource
public URL getResource(String path) throws MalformedURLException(Code)
Return a URL object of a resource that is mapped to the specified context-relative path.
Parameters:
  path - Context-relative path of the desired resource
exception:
  MalformedURLException - if the resource path isnot properly formed



getResourceAsStream
public InputStream getResourceAsStream(String path)(Code)
Return an InputStream allowing access to the resource at the specified context-relative path.
Parameters:
  path - Context-relative path of the desired resource



getResourcePaths
public Set getResourcePaths(String path)(Code)
Return the set of resource paths for the "directory" at the specified context path.
Parameters:
  path - Context-relative base path



getServerInfo
public String getServerInfo()(Code)
Return descriptive information about this server.



getServlet
public Servlet getServlet(String name) throws ServletException(Code)
Return a null reference for the specified servlet name.
Parameters:
  name - Name of the requested servlet



getServletContextName
public String getServletContextName()(Code)
Return the name of this servlet context.



getServletNames
public Enumeration getServletNames()(Code)
Return an empty enumeration of servlet names.



getServlets
public Enumeration getServlets()(Code)
Return an empty enumeration of servlets.



log
public void log(String message)(Code)
Log the specified message.
Parameters:
  message - The message to be logged



log
public void log(Exception exception, String message)(Code)
Log the specified message and exception.
Parameters:
  exception - The exception to be logged
Parameters:
  message - The message to be logged



log
public void log(String message, Throwable exception)(Code)
Log the specified message and exception.
Parameters:
  message - The message to be logged
Parameters:
  exception - The exception to be logged



removeAttribute
public void removeAttribute(String name)(Code)
Remove the specified context attribute.
Parameters:
  name - Name of the attribute to remove



setAttribute
public void setAttribute(String name, Object value)(Code)
Set or replace the specified context attribute.
Parameters:
  name - Name of the context attribute to set
Parameters:
  value - Corresponding attribute value



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.