Class FortuneServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--FortuneServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FortuneServlet
extends javax.servlet.http.HttpServlet

FortuneServlet
 Sample Servlet to print a random, hopefully interesting, adage

 This servlet don't send [HTML] or [BODY] html tags but define content-type
		
 

Version:
$Revision: 1.1$
Author:
M Riess
See Also:
Fortune, Serialized Form

Constructor Summary
FortuneServlet()
           
 
Method Summary
 void destroy()
           
 java.lang.String getServletInfo()
          FortuneServlet print a random, hopefully interesting, adage
 void init(javax.servlet.ServletConfig config)
           
 void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FortuneServlet

public FortuneServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    java.io.IOException
Overrides:
service in class javax.servlet.http.HttpServlet

getServletInfo

public java.lang.String getServletInfo()
FortuneServlet print a random, hopefully interesting, adage
Overrides:
getServletInfo in class javax.servlet.GenericServlet

destroy

public void destroy()
Overrides:
destroy in class javax.servlet.GenericServlet