javax.servlet.http
Class HttpServlet

java.lang.Object
  |
  +--javax.servlet.http.HttpServlet

public abstract class HttpServlet
extends Object

Provides an abstract class to be subclassed to create an HTTP servlet suitable for a lejos Web Server. A subclass of HttpServlet must override at least one method. The only method currently suported by lejos is:

lejos currently supports a single Servlet. You call the parameterless constructor to create the Servlet, and call th inti() method to start the Web Server. It loops forever processing GET requests. All paths are mapped onto this single servlet.

Author:
Lawrie Griffiths

Constructor Summary
HttpServlet()
           
 
Method Summary
abstract  void doGet(HttpServletRequest request, HttpServletResponse response)
          doGet must be overridden to allow your Servlet to process GET requests
 void init()
          Initialize the HTTP servlet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

HttpServlet

public HttpServlet()
Method Detail

init

public void init()
          throws IOException
Initialize the HTTP servlet

Throws:
IOException - if an input or output error occurs

doGet

public abstract void doGet(HttpServletRequest request,
                           HttpServletResponse response)
                    throws IOException
doGet must be overridden to allow your Servlet to process GET requests

Throws:
IOException - if an input or output error occurs
ServletException - not used in lejos version