All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class WebSite.Servlet.Servlet

java.lang.Object
   |
   +----WebSite.Servlet.Servlet

public abstract class Servlet
extends Object

The abstract class for the WebSite/Java servlet interface. Your servlet program must extend this abstract class and implement the run() method.

Example:

public class myprog extends Servlet {
     public void run() throws Throwable {
         //
         // Here is where your servlet program goes
         //
     }
 }

See Also:
Server, Client, Request, Form, Response, Session

Constructor Index

 o Servlet()
Not used.

Method Index

 o run()
This method must be implemented in your subclass.

Constructors

 o Servlet
 public Servlet()
Not used.

Methods

 o run
 protected abstract void run() throws Throwable
This method must be implemented in your subclass. The actual work of your Servlet program is done by this method.

Throws: Throwable
All uncaught exceptions (including Java runtime types) are caught by a global catcher in the Startup class. This exception handler formats the runtime error information (including a stack traceback) into a 500 Server Error message and returns it to the client.

All Packages  Class Hierarchy  This Package  Previous  Next  Index