Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jbreport.interfaces.servlet
Class BasicReportServlet  view BasicReportServlet download BasicReportServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byjbreport.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 $

Field Summary
private static java.lang.String PROP_FILE
          The name of the local file used to load the properties
private  java.util.Properties properties
          The properties instance that configures this servlet
private static java.lang.String servletURL
          The location of the servlet - used by the JSP pages
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
BasicReportServlet()
           
 
Method Summary
private  java.util.Iterator documentNames()
          Returns an iterator over all the document names that are known to the repositories which are specified in the properties file
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          The controller is passed data through the get mechanism for navigation.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          The controller is passed data through the post mechanism for data capture
static java.lang.String getServletURL()
           
 void init()
          This method is used to initialize the reporting package prior to first use.
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.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 

Field Detail

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

Constructor Detail

BasicReportServlet

public BasicReportServlet()
Method Detail

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.