2004.04.29


com.jdc.http
Class HttpServlet

java.lang.Object
  |
  +--jdc.javax.servlet.http.HttpServlet
        |
        +--com.jdc.http.HttpServlet
Direct Known Subclasses:
HttpController

public class HttpServlet
extends HttpServlet

HttpServlet implements methods common to all HTTP servlets. All HTTP servlets should extend this servlet class.

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Constructor Summary
HttpServlet()
           
 
Method Summary
protected  RequestDispatcher getRequestDispatcher(String URL)
          Returns a request dispatcher from the servlet context for the specified URL.
 ServletConfig getServletConfig()
          Returns the servlet config object.
 ServletContext getServletContext()
          Returns the servlet context object.
 String getServletName()
          Returns the servlet name.
protected  String getWebAppPathName()
          Returns the web application path name.
 void init(ServletConfig config)
          Initializes the HTTP servlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServlet

public HttpServlet()
Method Detail

getRequestDispatcher

protected RequestDispatcher getRequestDispatcher(String URL)
Returns a request dispatcher from the servlet context for the specified URL.

Returns:
RequestDispatcher

getServletConfig

public ServletConfig getServletConfig()
Returns the servlet config object.

Returns:
ServletConfig

getServletContext

public ServletContext getServletContext()
Returns the servlet context object.

Returns:
ServletContext

getServletName

public String getServletName()
Returns the servlet name.

Returns:
String

getWebAppPathName

protected String getWebAppPathName()
Returns the web application path name.

Returns:
String

init

public void init(ServletConfig config)
          throws ServletException
Initializes the HTTP servlet.

ServletException

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.