- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class PiccoloServlet
extends javax.servlet.http.HttpServlet
A HttpServlet that initializes Piccolo context and passes request actions specified in the action map of
the piccolo context. Piccolo is initialized with an xml file processed by XMLParamProcessor. The config
file name is taken from init parameter "configfile". A Logger is added to the XMLParamProcessor symbol
table before parsing with key "logger". This can be used by the application or any actions or other
services to write log entries. The config file should create exactly one object with element name
"application" and it should be an instance of Application. This application will receive the http requests.
The config file may specify any number of objects with "shutdownhook" element name. They must be
instances of PiccoloShutdownHook and their doShutdown method is called when the servlet context is
being destroyed and application clean up should be performed.
- Author:
- olli
- See Also:
- Serialized Form