org.cofax.cms
Class CofaxToolsServlet


java.lang.Object

  |

  +--javax.servlet.GenericServlet

        |

        +--javax.servlet.http.HttpServlet

              |

              +--org.cofax.cms.CofaxToolsServlet

All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CofaxToolsServlet
extends javax.servlet.http.HttpServlet

Cofax Tools Servlet: Main driver for Cofax Tools. Initializes connection pooling, loads templates, loads package tags, then collects all queries for proper distribution and processing.

Version:
1.8
Author:
Charles Harvey, Hung Dao
See Also:
Serialized Form

Field Summary
static java.lang.String bodyColor
          The html body color for tools pages.
static java.lang.String fileTransferFolder
          Location of folder with 777 permissions on this hard drive for writing temp during file transfers.
static java.lang.String hilite
          The html color that appears on highlighted tabs for tools pages.
 java.lang.String hostName
          Name of the host.
 java.lang.String pathInfo
          Path info for the servlet.
 java.lang.String queryString
          Handle for any queryStrings passed.
 java.lang.String servletPath
          Physical path to the servlet.
 javax.servlet.http.HttpSession session
          Handle for user sessions.
static java.lang.String tabColor
          The html color that appears on tabs for tools pages.
static java.lang.String tableColor
          The html table color for tools pages.
 java.lang.Object tmp
          Used for host information.
 
Constructor Summary
CofaxToolsServlet()
           
 
Method Summary
static DataStore connect()
          Creates a database connection to be passed through all CofaxTools classes.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          All navigation & page returns flow through Get.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Sends all requests to Get.
 void init(javax.servlet.ServletConfig config)
          Setup CofaxTools with database access upon startup and initialize all values.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, 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

fileTransferFolder


public static java.lang.String fileTransferFolder
Location of folder with 777 permissions on this hard drive for writing temp during file transfers.

servletPath


public java.lang.String servletPath
Physical path to the servlet.

pathInfo


public java.lang.String pathInfo
Path info for the servlet.

queryString


public java.lang.String queryString
Handle for any queryStrings passed.

tmp


public java.lang.Object tmp
Used for host information.

hostName


public java.lang.String hostName
Name of the host.

session


public javax.servlet.http.HttpSession session
Handle for user sessions.

hilite


public static java.lang.String hilite
The html color that appears on highlighted tabs for tools pages.

bodyColor


public static java.lang.String bodyColor
The html body color for tools pages.

tableColor


public static java.lang.String tableColor
The html table color for tools pages.

tabColor


public static java.lang.String tabColor
The html color that appears on tabs for tools pages.
Constructor Detail

CofaxToolsServlet


public CofaxToolsServlet()
Method Detail

init


public final void init(javax.servlet.ServletConfig config)

                throws javax.servlet.ServletException
Setup CofaxTools with database access upon startup and initialize all values. Load memory with all package tags, determine the status of logging, and load templates.
Overrides:
init in class javax.servlet.GenericServlet

doGet


public void doGet(javax.servlet.http.HttpServletRequest req,

                  javax.servlet.http.HttpServletResponse res)

           throws javax.servlet.ServletException,

                  java.io.IOException
All navigation & page returns flow through Get. Sends all requests to CofaxToolNavigate where correct action is determined and results are returned.
Overrides:
doGet in class javax.servlet.http.HttpServlet

doPost


public void doPost(javax.servlet.http.HttpServletRequest req,

                   javax.servlet.http.HttpServletResponse res)

            throws javax.servlet.ServletException,

                   java.io.IOException
Sends all requests to Get.
Overrides:
doPost in class javax.servlet.http.HttpServlet

connect


public static DataStore connect()
Creates a database connection to be passed through all CofaxTools classes.


Copyright 2001 KnightRidder.com. All Rights Reserved.