Java Doc for ApplicationContext.java in  » Web-Server » Rimfaxe-Web-Server » org » apache » catalina » core » 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 » Web Server » Rimfaxe Web Server » org.apache.catalina.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.core.ApplicationContext

ApplicationContext
public class ApplicationContext implements ServletContext(Code)
Standard implementation of ServletContext that represents a web application's execution environment. An instance of this class is associated with each instance of StandardContext.
author:
   Craig R. McClanahan
author:
   Remy Maucherat
version:
   $Revision: 1.39 $ $Date: 2002/06/28 01:35:34 $

Inner Class :protected class PrivilegedGetRequestDispatcher implements PrivilegedAction
Inner Class :protected class PrivilegedGetResource implements PrivilegedExceptionAction
Inner Class :protected class PrivilegedGetResourcePaths implements PrivilegedAction
Inner Class :protected class PrivilegedLogMessage implements PrivilegedAction
Inner Class :protected class PrivilegedLogException implements PrivilegedAction
Inner Class :protected class PrivilegedLogThrowable implements PrivilegedAction


Constructor Summary
public  ApplicationContext(String basePath, StandardContext context)
     Construct a new instance of this class, associated with the specified Context instance.

Method Summary
public  voidclearAttributes()
     Clear all application-created attributes.
public  ObjectgetAttribute(String name)
     Return the value of the specified context attribute, if any; otherwise return null.
public  EnumerationgetAttributeNames()
     Return an enumeration of the names of the context attributes associated with this context.
public  ServletContextgetContext(String uri)
     Return a ServletContext object that corresponds to a specified URI on the server.
 ServletContextgetFacade()
     Return the facade associated with this ApplicationContext.
public  StringgetInitParameter(String name)
     Return the value of the specified initialization parameter, or null if this parameter does not exist.
public  EnumerationgetInitParameterNames()
     Return the names of the context's initialization parameters, or an empty enumeration if the context has no initialization parameters.
public static  StringgetJNDIUri(String hostName, String path)
     Get full path, based on the host name and the context path.
public  intgetMajorVersion()
     Return the major version of the Java Servlet API that we implement.
public  StringgetMimeType(String file)
     Return the MIME type of the specified file, or null if the MIME type cannot be determined.
public  intgetMinorVersion()
     Return the minor version of the Java Servlet API that we implement.
public  RequestDispatchergetNamedDispatcher(String name)
     Return a RequestDispatcher object that acts as a wrapper for the named servlet.
public  StringgetRealPath(String path)
     Return the real path for a given virtual path, if possible; otherwise return null.
public  RequestDispatchergetRequestDispatcher(String path)
     Return a RequestDispatcher instance that acts as a wrapper for the resource at the given path.
public  URLgetResource(String path)
     Return the URL to the resource that is mapped to a specified path.
public  InputStreamgetResourceAsStream(String path)
     Return the requested resource as an InputStream.
public  SetgetResourcePaths(String path)
     Return a Set containing the resource paths of resources member of the specified collection.
public  DirContextgetResources()
     Return the resources object that is mapped to a specified path.
public  StringgetServerInfo()
     Return the name and version of the servlet container.
public  ServletgetServlet(String name)
    
public  StringgetServletContextName()
     Return the display name of this web application.
public  EnumerationgetServletNames()
    
public  EnumerationgetServlets()
    
public  voidlog(String message)
     Writes the specified message to a servlet log file.
public  voidlog(Exception exception, String message)
     Writes the specified exception and message to a servlet log file.
public  voidlog(String message, Throwable throwable)
     Writes the specified message and exception to a servlet log file.
public  voidremoveAttribute(String name)
     Remove the context attribute with the specified name, if any.
public  voidsetAttribute(String name, Object value)
     Bind the specified value with the specified context attribute name, replacing any existing value for that name.
public  voidsetAttributeReadOnly(String name)
     Set an attribute as read only.


Constructor Detail
ApplicationContext
public ApplicationContext(String basePath, StandardContext context)(Code)
Construct a new instance of this class, associated with the specified Context instance.
Parameters:
  context - The associated Context instance




Method Detail
clearAttributes
public void clearAttributes()(Code)
Clear all application-created attributes.



getAttribute
public Object getAttribute(String name)(Code)
Return the value of the specified context attribute, if any; otherwise return null.
Parameters:
  name - Name of the context attribute to return



getAttributeNames
public Enumeration getAttributeNames()(Code)
Return an enumeration of the names of the context attributes associated with this context.



getContext
public ServletContext getContext(String uri)(Code)
Return a ServletContext object that corresponds to a specified URI on the server. This method allows servlets to gain access to the context for various parts of the server, and as needed obtain RequestDispatcher objects or resources from the context. The given path must be absolute (beginning with a "/"), and is interpreted based on our virtual host's document root.
Parameters:
  uri - Absolute URI of a resource on the server



getFacade
ServletContext getFacade()(Code)
Return the facade associated with this ApplicationContext.



getInitParameter
public String getInitParameter(String name)(Code)
Return the value of the specified initialization parameter, or null if this parameter does not exist.
Parameters:
  name - Name of the initialization parameter to retrieve



getInitParameterNames
public Enumeration getInitParameterNames()(Code)
Return the names of the context's initialization parameters, or an empty enumeration if the context has no initialization parameters.



getJNDIUri
public static String getJNDIUri(String hostName, String path)(Code)
Get full path, based on the host name and the context path.



getMajorVersion
public int getMajorVersion()(Code)
Return the major version of the Java Servlet API that we implement.



getMimeType
public String getMimeType(String file)(Code)
Return the MIME type of the specified file, or null if the MIME type cannot be determined.
Parameters:
  file - Filename for which to identify a MIME type



getMinorVersion
public int getMinorVersion()(Code)
Return the minor version of the Java Servlet API that we implement.



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)(Code)
Return a RequestDispatcher object that acts as a wrapper for the named servlet.
Parameters:
  name - Name of the servlet for which a dispatcher is requested



getRealPath
public String getRealPath(String path)(Code)
Return the real path for a given virtual path, if possible; otherwise return null.
Parameters:
  path - The path to the desired resource



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String path)(Code)
Return a RequestDispatcher instance that acts as a wrapper for the resource at the given path. The path must begin with a "/" and is interpreted as relative to the current context root.
Parameters:
  path - The path to the desired resource.



getResource
public URL getResource(String path) throws MalformedURLException(Code)
Return the URL to the resource that is mapped to a specified path. The path must begin with a "/" and is interpreted as relative to the current context root.
Parameters:
  path - The path to the desired resource
exception:
  MalformedURLException - if the path is not givenin the correct form



getResourceAsStream
public InputStream getResourceAsStream(String path)(Code)
Return the requested resource as an InputStream. The path must be specified according to the rules described under getResource. If no such resource can be identified, return null.
Parameters:
  path - The path to the desired resource.



getResourcePaths
public Set getResourcePaths(String path)(Code)
Return a Set containing the resource paths of resources member of the specified collection. Each path will be a String starting with a "/" character. The returned set is immutable.
Parameters:
  path - Collection path



getResources
public DirContext getResources()(Code)
Return the resources object that is mapped to a specified path. The path must begin with a "/" and is interpreted as relative to the current context root.



getServerInfo
public String getServerInfo()(Code)
Return the name and version of the servlet container.



getServlet
public Servlet getServlet(String name)(Code)



getServletContextName
public String getServletContextName()(Code)
Return the display name of this web application.



getServletNames
public Enumeration getServletNames()(Code)



getServlets
public Enumeration getServlets()(Code)



log
public void log(String message)(Code)
Writes the specified message to a servlet log file.
Parameters:
  message - Message to be written



log
public void log(Exception exception, String message)(Code)
Writes the specified exception and message to a servlet log file.
Parameters:
  exception - Exception to be reported
Parameters:
  message - Message to be written



log
public void log(String message, Throwable throwable)(Code)
Writes the specified message and exception to a servlet log file.
Parameters:
  message - Message to be written
Parameters:
  throwable - Exception to be reported



removeAttribute
public void removeAttribute(String name)(Code)
Remove the context attribute with the specified name, if any.
Parameters:
  name - Name of the context attribute to be removed



setAttribute
public void setAttribute(String name, Object value)(Code)
Bind the specified value with the specified context attribute name, replacing any existing value for that name.
Parameters:
  name - Attribute name to be bound
Parameters:
  value - New attribute value to be bound



setAttributeReadOnly
public void setAttributeReadOnly(String name)(Code)
Set an attribute as read only.



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.