All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.servlet.ServletDirectoryFrame

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ProtocolFrame
                                           |
                                           +----org.w3c.jigsaw.frames.HTTPFrame
                                                   |
                                                   +----org.w3c.jigsaw.servlet.ServletDirectoryFrame

public class ServletDirectoryFrame
extends HTTPFrame
implements ServletContext

Constructor Index

 o ServletDirectoryFrame()

Method Index

 o getAttribute(String)
ServletContext implementation - Get an attribute value.
 o getDirectory()
 o getMimeType(String)
ServletContext implementation - Get the MIME type for given file.
 o getRealPath(String)
ServletContext implementation - Translate a piece of path.
 o getServerInfo()
ServletContext implementation - Get server informations.
 o getServlet(String)
ServletContext implementation - Lookup a given servlet.
 o getServletNames()
 o getServlets()
ServletContext implementation - Enumerate all servlets within context.
 o guessContentTypeFromName(String)
A useful utility routine that tries to guess the content-type of an object based upon its extension.
 o log(Exception, String)
 o log(String)
ServletContext implementation - Log a message.
 o updateDefaultChildAttributes(Hashtable)
We add a context attribute to all our children.

Constructors

 o ServletDirectoryFrame
 public ServletDirectoryFrame()

Methods

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

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

 o getDirectory
 public File getDirectory()
 o getServlet
 public Servlet getServlet(String name)
ServletContext implementation - Lookup a given servlet.

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

 o getServletNames
 public Enumeration getServletNames()
 o log
 public void log(String msg)
ServletContext implementation - Log a message.

 o log
 public void log(Exception ex,
                 String msg)
 o getRealPath
 public String getRealPath(String path)
ServletContext implementation - Translate a piece of path.

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

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

Parameters:
name - The attribute name.
 o updateDefaultChildAttributes
 protected void updateDefaultChildAttributes(Hashtable attrs)
We add a context attribute to all our children. The context attribute is any object implementing the ServletContext interface.

Overrides:
updateDefaultChildAttributes in class ResourceFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index