org.apache.avalon.fortress.examples.servlet
Class servlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.apache.avalon.fortress.examples.servlet.servlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public final class servlet
extends javax.servlet.http.HttpServlet

Servlet based Fortress container example.

Version:
$Id: servlet.java,v 1.9 2004/02/24 22:31:22 niclas Exp $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
servlet()
           
 
Method Summary
 void destroy()
          Disposes of container manager and container instance.
 void init()
          Initializes Servlet and creates a ServletContainer instance
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Pass all servlet requests through to container to be handled.
 
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, 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

servlet

public servlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initializes Servlet and creates a ServletContainer instance

Throws:
javax.servlet.ServletException - if an error occurs

service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Pass all servlet requests through to container to be handled. In a more complex system, there could be multiple containers that handle different requests, or a main controlling container with subcontainers for different requests.

Parameters:
request - a ServletRequest instance
response - a ServletResponse instance
Throws:
java.io.IOException - if an IO error occurs
javax.servlet.ServletException - if a servlet error occurs

destroy

public void destroy()
Disposes of container manager and container instance.



Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.