Class sun.server.http.HttpServletContext
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.http.HttpServletContext

java.lang.Object
   |
   +----sun.server.http.HttpServletContext

public class HttpServletContext
extends Object
implements ServletContext
This class is used by a servlet to obtain information about the server.

Method Index

 o getMimeType(String)
Returns the mime type of the specified file.
 o getRealPath(String)
Applies alias rules to the specified virtual path and returns the corresponding real path.
 o getServerInfo()
Returns the name and version of the Web server.
 o getServlet(String)
Gets a servlet by name.
 o getServlets()
Enumerates the servlets in this context (server).
 o log(Servlet, String)
Write information to the servlet log.

Methods

 o getServlet
  public Servlet getServlet(String name)
Gets a servlet by name.
Returns:
null if the servlet does not exist.
 o getServlets
  public Enumeration getServlets()
Enumerates the servlets in this context (server). Only servlets that are accesible will be returned. This enumeration always includes the servlet itself.
 o log
  public void log(Servlet servlet,
                  String message)
Write information to the servlet log.
Parameters:
Servlet - which is calling the log
message - to log.
 o getServerInfo
  public String getServerInfo()
Returns the name and version of the Web server.
 o getRealPath
  public String getRealPath(String path)
Applies alias rules to the specified virtual path and returns the corresponding real path.
 o getMimeType
  public String getMimeType(String path)
Returns the mime type of the specified file.

All Packages  Class Hierarchy  This Package  Previous  Next  Index