org.mapfish.print.servlet
Class BaseMapServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mapfish.print.servlet.BaseMapServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
MapPrinterServlet

public abstract class BaseMapServlet
extends javax.servlet.http.HttpServlet

Base class for MapPrinter servlets (deals with the configuration loading)

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Logger LOGGER
           
 
Constructor Summary
BaseMapServlet()
           
 
Method Summary
 void destroy()
           
protected  MapPrinter getMapPrinter()
          Builds a MapPrinter instance out of the file pointed by the servlet's configuration.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

LOGGER

public static final org.apache.log4j.Logger LOGGER
Constructor Detail

BaseMapServlet

public BaseMapServlet()
Method Detail

getMapPrinter

protected MapPrinter getMapPrinter()
                            throws javax.servlet.ServletException
Builds a MapPrinter instance out of the file pointed by the servlet's configuration. The location can be configured in two locations:

If the location is a relative path, it's taken from the servlet's root directory.

Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet


Copyright © 2009 Camptocamp SA. All Rights Reserved.