dea.albums
Class GenOut

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bydea.albums.BaseServlet
              extended bydea.albums.GenOut
All Implemented Interfaces:
IDebugLevels, java.io.Serializable, Servlet, ServletConfig

public class GenOut
extends BaseServlet

This class is the base class for all the programs

See Also:
Serialized Form

Field Summary
 DB db
          Get connection to display / log utils
 Display display
          Get connection to display / log utils
 
Fields inherited from interface dea.common.IDebugLevels
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS
 
Constructor Summary
GenOut()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 boolean mkdirs(java.lang.String s)
          Creates subdirectories as needed to complete path.
 void parse(java.lang.String[] args)
          parses the command line arguments.
 java.lang.String performTask(HttpServletRequest request, HttpServletResponse response)
          add any new files in the raw pics dir or below to the DB guessing at as much info as we can
 void setup()
          Used to create tables if needed now basicly just calls getPARMS.
 
Methods inherited from class dea.albums.BaseServlet
callPage, emptyToNull, getParameter, init, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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

display

public Display display
Get connection to display / log utils


db

public DB db
Get connection to display / log utils

Constructor Detail

GenOut

public GenOut()
Method Detail

parse

public void parse(java.lang.String[] args)
           throws java.lang.Exception
parses the command line arguments.

Parameters:
args - A string array of the command line arguments.
Throws:
java.lang.Exception

mkdirs

public boolean mkdirs(java.lang.String s)
               throws java.io.IOException
Creates subdirectories as needed to complete path.

Parameters:
s - String representing the directory path that needs to be created.
Returns:
sucess / failure
Throws:
java.io.IOException - if unable to create directory

performTask

public java.lang.String performTask(HttpServletRequest request,
                                    HttpServletResponse response)
                             throws java.io.IOException,
                                    ServletException,
                                    java.lang.Exception
add any new files in the raw pics dir or below to the DB guessing at as much info as we can

Parameters:
request - HttpServletRequest
response - HttpServletResponse
Throws:
java.io.IOException
ServletException
java.lang.Exception

setup

public void setup()
           throws java.sql.SQLException,
                  java.lang.ClassNotFoundException
Used to create tables if needed now basicly just calls getPARMS.

Throws:
java.sql.SQLException
java.lang.ClassNotFoundException

main

public static void main(java.lang.String[] args)


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.