Java Doc for JigsawServletContext.java in  » Web-Server » Jigsaw » org » w3c » jigsaw » 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 » Web Server » Jigsaw » org.w3c.jigsaw.servlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.w3c.tools.resources.event.StructureChangedAdapter
      org.w3c.jigsaw.servlet.JigsawServletContext

JigsawServletContext
public class JigsawServletContext extends StructureChangedAdapter implements ServletContext,PropertyMonitoring(Code)

version:
   $Revision: 1.34 $
author:
   Benoît Mahé (bmahe@w3.org)

Inner Class :class Logger

Field Summary
final public static  StringTEMPDIR_P
    
protected static  Stringdeflogfile
    
protected static  Stringlogdir
    

Constructor Summary
protected  JigsawServletContext(ResourceReference ref, ObservableProperties props)
     Create a new ServletContext.

Method Summary
protected synchronized  AutoReloadServletLoadercreateNewLocalServletLoader(boolean keepold)
    
public  ObjectgetAttribute(String name)
     ServletContext implementation - Get an attribute value.
public  EnumerationgetAttributeNames()
    
public  ServletContextgetContext(String uripath)
    
protected static  StringgetFilePath(DirectoryResource dir)
    
public  StringgetInitParameter(String name)
     Returns a String containing the value of the named context-wide initialization parameter, or null if the parameter does not exist.

This method can make available configuration information useful to an entire "web application".

public  EnumerationgetInitParameterNames()
     Returns the names of the context's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the context has no initialization parameters.
protected static  ResourceReferencegetLocalRoot(ResourceReference rr_root, ResourceReference ref)
    
protected synchronized  AutoReloadServletLoadergetLocalServletLoader()
     Get or create a suitable LocalServletLoader instance to load that servlet.
public  intgetMajorVersion()
    
public  StringgetMimeType(String filename)
     ServletContext implementation - Get the MIME type for given file.
public  intgetMinorVersion()
    
public  RequestDispatchergetNamedDispatcher(String name)
     Returns a RequestDispatcher object that acts as a wrapper for the named servlet.
protected static  StringgetRealPath(String path, ResourceReference rr_root, ResourceReference rr)
     ServletContext implementation - Translate a piece of path.
public  StringgetRealPath(String path)
     ServletContext implementation - Translate a piece of path.
public  RequestDispatchergetRequestDispatcher(String urlpath)
     Returns a RequestDispatcher object for the specified URL path if the context knows of an active source (such as a servlet, JSP page, CGI script, etc) of content for the particular path.
public  URLgetResource(String path)
    
public  InputStreamgetResourceAsStream(String path)
    
public  SetgetResourcePaths(String path)
    
public  ServerInterfacegetServer()
    
public  StringgetServerInfo()
     ServletContext implementation - Get server informations.
public  ServletgetServlet(String name)
     ServletContext implementation - Lookup a given servlet.
public  StringgetServletContextName()
    
public  FilegetServletDirectory()
    
protected  intgetServletInstanceMax()
    
public  FilegetServletLogFile()
    
public  EnumerationgetServletNames()
     ServletContext implementation - Enumerate all servlets names within context.
protected  longgetServletTimeout()
    
public  EnumerationgetServlets()
     ServletContext implementation - Enumerate all servlets within context.
protected static  StringguessContentTypeFromName(String fname)
     A useful utility routine that tries to guess the content-type of an object based upon its extension.
public  voidlog(String msg)
     ServletContext implementation - Log a message.
public  voidlog(Exception ex, String msg)
    
public  voidlog(String message, Throwable throwable)
    
public  booleanpropertyChanged(String name)
    
public  voidremoveAttribute(String name)
    
public  voidresourceUnloaded(StructureChangedEvent evt)
    
public  voidsetAttribute(String name, Object object)
    

Field Detail
TEMPDIR_P
final public static String TEMPDIR_P(Code)



deflogfile
protected static String deflogfile(Code)



logdir
protected static String logdir(Code)




Constructor Detail
JigsawServletContext
protected JigsawServletContext(ResourceReference ref, ObservableProperties props)(Code)
Create a new ServletContext.
Parameters:
  ref - a ResourceReference pointing on a ServletDirectoryFrame.




Method Detail
createNewLocalServletLoader
protected synchronized AutoReloadServletLoader createNewLocalServletLoader(boolean keepold)(Code)



getAttribute
public Object getAttribute(String name)(Code)
ServletContext implementation - Get an attribute value. We map this into the ServletWrapper attributes, without support for name clashes though.
Parameters:
  name - The attribute name.



getAttributeNames
public Enumeration getAttributeNames()(Code)



getContext
public ServletContext getContext(String uripath)(Code)



getFilePath
protected static String getFilePath(DirectoryResource dir)(Code)



getInitParameter
public String getInitParameter(String name)(Code)
Returns a String containing the value of the named context-wide initialization parameter, or null if the parameter does not exist.

This method can make available configuration information useful to an entire "web application". For example, it can provide a webmaster's email address or the name of a system that holds critical data.
Parameters:
  name - a String containing the name of theparameter whose value is requested a String containing at least the servlet container name and version number
See Also:   ServletConfig.getInitParameter




getInitParameterNames
public Enumeration getInitParameterNames()(Code)
Returns the names of the context's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the context has no initialization parameters. an Enumeration of String objects containing the names of the context's initialization parameters
See Also:   ServletConfig.getInitParameter



getLocalRoot
protected static ResourceReference getLocalRoot(ResourceReference rr_root, ResourceReference ref)(Code)



getLocalServletLoader
protected synchronized AutoReloadServletLoader getLocalServletLoader()(Code)
Get or create a suitable LocalServletLoader instance to load that servlet. A LocalServletLoader instance.



getMajorVersion
public int getMajorVersion()(Code)



getMimeType
public String getMimeType(String filename)(Code)
ServletContext implementation - Get the MIME type for given file.



getMinorVersion
public int getMinorVersion()(Code)



getNamedDispatcher
public RequestDispatcher getNamedDispatcher(String name)(Code)
Returns a RequestDispatcher object that acts as a wrapper for the named servlet.

Servlets (and JSP pages also) may be given names via server administration or via a web application deployment descriptor. A servlet instance can determine its name using ServletConfig.getServletName .

This method returns null if the ServletContext cannot return a RequestDispatcher for any reason.
Parameters:
  name - a String specifying the nameof a servlet to wrap a RequestDispatcher objectthat acts as a wrapper for the named servlet
See Also:   RequestDispatcher
See Also:   ServletContext.getContext
See Also:   ServletConfig.getServletName




getRealPath
protected static String getRealPath(String path, ResourceReference rr_root, ResourceReference rr)(Code)
ServletContext implementation - Translate a piece of path.
Parameters:
  path - the virtual path to translate
Parameters:
  rr_root - the Root ResourceReference
Parameters:
  rr - the target ResourceReference the real path



getRealPath
public String getRealPath(String path)(Code)
ServletContext implementation - Translate a piece of path.
Parameters:
  path - the virtual path to translate the real path



getRequestDispatcher
public RequestDispatcher getRequestDispatcher(String urlpath)(Code)
Returns a RequestDispatcher object for the specified URL path if the context knows of an active source (such as a servlet, JSP page, CGI script, etc) of content for the particular path. This format of the URL path must be of the form /dir/dir/file.ext. The servlet engine is responsible for implementing whatever functionality is required to wrap the target source with an implementation of the RequestDispatcher interface.
Parameters:
  urlpath - Path to use to look up the target server resource



getResource
public URL getResource(String path) throws MalformedURLException(Code)



getResourceAsStream
public InputStream getResourceAsStream(String path)(Code)



getResourcePaths
public Set getResourcePaths(String path)(Code)
from Servlet 2.3, very file-oriented FIXME always returning null as of now



getServer
public ServerInterface getServer()(Code)



getServerInfo
public String getServerInfo()(Code)
ServletContext implementation - Get server informations.



getServlet
public Servlet getServlet(String name)(Code)
ServletContext implementation - Lookup a given servlet.



getServletContextName
public String getServletContextName()(Code)
from Servlet 2.3, very file-oriented should return a web-app container name FIXME always returning null as of now



getServletDirectory
public File getServletDirectory()(Code)



getServletInstanceMax
protected int getServletInstanceMax()(Code)



getServletLogFile
public File getServletLogFile()(Code)



getServletNames
public Enumeration getServletNames()(Code)
ServletContext implementation - Enumerate all servlets names within context.



getServletTimeout
protected long getServletTimeout()(Code)



getServlets
public Enumeration getServlets()(Code)
ServletContext implementation - Enumerate all servlets within context.



guessContentTypeFromName
protected static String guessContentTypeFromName(String fname)(Code)
A useful utility routine that tries to guess the content-type of an object based upon its extension.



log
public void log(String msg)(Code)
ServletContext implementation - Log a message.



log
public void log(Exception ex, String msg)(Code)



log
public void log(String message, Throwable throwable)(Code)



propertyChanged
public boolean propertyChanged(String name)(Code)



removeAttribute
public void removeAttribute(String name)(Code)



resourceUnloaded
public void resourceUnloaded(StructureChangedEvent evt)(Code)



setAttribute
public void setAttribute(String name, Object object)(Code)



Methods inherited from org.w3c.tools.resources.event.StructureChangedAdapter
public void resourceCreated(StructureChangedEvent evt)(Code)(Java Doc)
public void resourceModified(StructureChangedEvent evt)(Code)(Java Doc)
public void resourceRemoved(StructureChangedEvent evt)(Code)(Java Doc)
public void resourceUnloaded(StructureChangedEvent evt)(Code)(Java Doc)

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.