net.dpml.test.http
Class HelloWorld

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bynet.dpml.test.http.HelloWorld
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class HelloWorld
extends HttpServlet

Hello World Servlet

See Also:
Serialized Form

Constructor Summary
HelloWorld()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Process an incomming get request.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          Process an incomming post request.
 void init(ServletConfig config)
          Servlet initialization.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorld

public HelloWorld()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Servlet initialization.

Parameters:
config - the servlet configuration
Throws:
ServletException - if a configuration error occurs

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Process an incomming post request.

Parameters:
request - the http request
response - the http response
Throws:
ServletException - if a servlet processing error occurs
IOException - if an IO error occurs

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Process an incomming get request.

Parameters:
request - the http request
response - the http response
Throws:
ServletException - if a servlet processing error occurs
IOException - if an IO error occurs