    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.servlet.ServletDirectory

    java.lang.Object
       |
       +----w3c.tools.store.AttributeHolder
               |
               +----w3c.tools.store.Resource
                       |
                       +----w3c.jigsaw.resources.HTTPResource
                               |
                               +----w3c.jigsaw.resources.FilteredResource
                                       |
                                       +----w3c.jigsaw.resources.ContainerResource
                                               |
                                               +----w3c.jigsaw.resources.StoreContainer
                                                       |
                                                       +----w3c.jigsaw.resources.DirectoryResource
                                                               |
                                                               +----w3c.jigsaw.servlet.ServletDirectory

public class ServletDirectory
extends DirectoryResource
implements ServletContext

##

ServletDirectory()

##

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

##

ServletDirectory

     public ServletDirectory()

##

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.

getMimeType

     public String getMimeType(String filename)

  ServletContext implementation - Get the MIME type for given file.

getServlet

     public Servlet getServlet(String name)

  ServletContext implementation - Lookup a given servlet.

getServlets

     public Enumeration getServlets()

  ServletContext implementation - Enumerate all servlets within context.

log

     public void log(String msg)

  ServletContext implementation - Log a message.

getRealPath

     public String getRealPath(String path)

  ServletContext implementation - Translate a piece of path.

getServerInfo

     public String getServerInfo()

  ServletContext implementation - Get server informations.

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.

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 DirectoryResource

    All Packages  Class Hierarchy  This Package  Previous  Next  Index