java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
jbreport.interfaces.servlet.BasicReportServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class BasicReportServlet
- extends javax.servlet.http.HttpServlet
This is the controller instance for basic reporting functions. It will
redirect as appropriate to named jsp's for further information capture.
At the moment, we don't cater for application connection instances,
but will do so in the future.
All the initialization parameters for this servlet will be read in from
the properties file in this package.
- Version:
- $Revision: 1.1.1.1 $
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_FILE
private static final java.lang.String PROP_FILE
- The name of the local file used to load the properties
- See Also:
- Constant Field Values
servletURL
private static java.lang.String servletURL
- The location of the servlet - used by the JSP pages
properties
private java.util.Properties properties
- The properties instance that configures this servlet
BasicReportServlet
public BasicReportServlet()
init
public void init()
throws javax.servlet.ServletException
- This method is used to initialize the reporting package prior to first
use.
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- The controller is passed data through the get mechanism for navigation.
We don't use the redirect mechanism here, as that assumes too much
knowledge about the running context of the servlet.
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- The controller is passed data through the post mechanism for data capture
getServletURL
public static java.lang.String getServletURL()
documentNames
private java.util.Iterator documentNames()
throws jbreport.ReportException
- Returns an iterator over all the document names that are known to the
repositories which are specified in the properties file
propertiesForKeyPrefix
private java.util.Map propertiesForKeyPrefix(java.lang.String prefix)
- This will return a map of all the properties whose keys' start with the
specified prefix.