com.informationkinematics.imsforward
Class Littles

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.informationkinematics.imsforward.Littles
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
Setup, Showdown, Startup

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

Title: Littles
Description: This is the abstract superclass of each IMSForward GUI servlet, providing a set of helpful little tools and storing constants.
Copyright: Copyright (c) 2001 by Information Kinematics under GNU General Public License (see package description for more information)
Company: Information Kinematics

Version:
0.9.2
Author:
Florian Steinsiepe, Adrian Zaugg
See Also:
Serialized Form

Field Summary
protected static java.lang.String IMSFILE_ACTIVE
          File name constants for IMS's controller file (active and inactive).
protected static java.lang.String IMSFILE_INACTIVE
          File name constants for IMS's controller file (active and inactive).
private  java.lang.String sIMSPathFromRB
          Not yet parsed IMSPath, is set in readIMSForwardProperties()
protected  java.lang.String sPOP3Host
          POP3 Server address, accessible for extending classes
 
Fields inherited from class javax.servlet.http.HttpServlet
HEADER_IFMODSINCE, HEADER_LASTMOD, LSTRING_FILE, lStrings, METHOD_DELETE, METHOD_GET, METHOD_HEAD, METHOD_OPTIONS, METHOD_POST, METHOD_PUT, METHOD_TRACE
 
Fields inherited from class javax.servlet.GenericServlet
config
 
Constructor Summary
Littles()
           
 
Method Summary
protected  java.lang.String getIMSPath(java.lang.String sUserName)
          Replaces the environment variables in sIMSPathFromRB with their actual values, and %IMSMAILSERVERUSERNAME% with the passed string.
 void init()
          Servlet initialization.
private  void readIMSForwardProperties()
          Read parameter file and extract the IMS path into sIMSPathFromRB.
 
Methods inherited from class javax.servlet.http.HttpServlet
, doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getAllDeclaredMethods, getLastModified, maybeSetLastModified, 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, registerNatives, toString, wait, wait, wait
 

Field Detail

IMSFILE_ACTIVE

protected static final java.lang.String IMSFILE_ACTIVE
File name constants for IMS's controller file (active and inactive).

IMSFILE_INACTIVE

protected static final java.lang.String IMSFILE_INACTIVE
File name constants for IMS's controller file (active and inactive).

sIMSPathFromRB

private java.lang.String sIMSPathFromRB
Not yet parsed IMSPath, is set in readIMSForwardProperties()

sPOP3Host

protected java.lang.String sPOP3Host
POP3 Server address, accessible for extending classes
Constructor Detail

Littles

public Littles()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Servlet initialization. Reads the project's parameter file.
Overrides:
init in class javax.servlet.GenericServlet

readIMSForwardProperties

private void readIMSForwardProperties()
Read parameter file and extract the IMS path into sIMSPathFromRB.

getIMSPath

protected java.lang.String getIMSPath(java.lang.String sUserName)
                               throws java.io.IOException,
                                      EnvVarNotFoundException
Replaces the environment variables in sIMSPathFromRB with their actual values, and %IMSMAILSERVERUSERNAME% with the passed string. If the user's inbox folder isn't found, an IOException is thrown.
Parameters:
sUserName - java.lang.String - replaces %IMSMAILSERVERUSERNAME% in sIMSPathFromRB
Returns:
java.lang.String - the absolute path to the user's IMS mail server control file