examples.guestbook
Class GuestbookServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byexamples.guestbook.GuestbookServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GuestbookServlet
extends javax.servlet.http.HttpServlet

This servlets grants access to the GuestbookServiceby means of a web-browser. This classs acts as a servlet running within the SeMoA platform and hence acts bridges between the SeMoA service an the web-browser. The implementation is quite simple. This class overrides {@link javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) which is called to generate the output for the web-client. The actual method looks up the guestbook service in the agent server environment, reads the data from it and passes them as HTML stream to web-client. That's it - easy, isn't it?

Version:
$Id: GuestbookServlet.java 1913 2007-08-08 02:41:53Z jpeters $
Author:
U. Pinsdorf
See Also:
HttpServer, HttpServlet, Environment, GuestbookService, Serialized Form

Field Summary
private  Logger LOG
          The logger instance for writing a log file.
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
GuestbookServlet()
           
 
Method Summary
 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
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private final Logger LOG
The logger instance for writing a log file. For the logger's configuration refer to file etc/semoa.logging.

Constructor Detail

GuestbookServlet

public GuestbookServlet()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res)
             throws javax.servlet.ServletException,
                    IOException
Throws:
javax.servlet.ServletException
IOException


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.