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.
-
getMimeType(String)
- Returns the mime type of the specified file.
-
getRealPath(String)
- Applies alias rules to the specified virtual path and returns the
corresponding real path.
-
getServerInfo()
- Returns the name and version of the Web server.
-
getServlet(String)
- Gets a servlet by name.
-
getServlets()
- Enumerates the servlets in this context (server).
-
log(Servlet, String)
- Write information to the servlet log.
getServlet
public Servlet getServlet(String name)
- Gets a servlet by name.
- Returns:
- null if the servlet does not exist.
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.
log
public void log(Servlet servlet,
String message)
- Write information to the servlet log.
- Parameters:
- Servlet - which is calling the log
- message - to log.
getServerInfo
public String getServerInfo()
- Returns the name and version of the Web server.
getRealPath
public String getRealPath(String path)
- Applies alias rules to the specified virtual path and returns the
corresponding real path.
getMimeType
public String getMimeType(String path)
- Returns the mime type of the specified file.
All Packages Class Hierarchy This Package Previous Next Index