Quadcap Image Database

com.quadcap.app.dbimage.ActionLoad Class Reference

Inheritance diagram for com.quadcap.app.dbimage.ActionLoad:

com.quadcap.app.dbimage.Action List of all members.

Detailed Description

Implementation of the 'load' action.

We load files into the database from a directory specified in the request. When we're done, we forward to either the "error" or the "show" page.

Author:
Stan Bailes

Definition at line 62 of file ActionLoad.java.

Public Member Functions

 ActionLoad ()
void init (ServletConfig config)
void service (HttpServletRequest request, HttpServletResponse response) throws Exception
Connection getConnection () throws SQLException
void forward (HttpServletRequest request, HttpServletResponse response, String page) throws ServletException, IOException

Package Attributes

ServletConfig config

Static Package Attributes

final String errorPage = "/error.jsp"
 We've hard-coded the names of the result JSP pages; if we wanted more flexibility, we could make these configuration parameters.

final String successPage = "/show.jsp"


Constructor & Destructor Documentation

com.quadcap.app.dbimage.ActionLoad.ActionLoad  ) 
 

Definition at line 72 of file ActionLoad.java.


Member Function Documentation

void com.quadcap.app.dbimage.ActionLoad.forward HttpServletRequest  request,
HttpServletResponse  response,
String  page
throws ServletException, IOException
 

Definition at line 119 of file ActionLoad.java.

References com.quadcap.app.dbimage.ActionLoad.config, and com.quadcap.app.dbimage.ActionLoad.forward().

Referenced by com.quadcap.app.dbimage.ActionLoad.forward(), and com.quadcap.app.dbimage.ActionLoad.service().

Connection com.quadcap.app.dbimage.ActionLoad.getConnection  )  throws SQLException
 

Definition at line 113 of file ActionLoad.java.

References com.quadcap.app.dbimage.ActionLoad.config, and com.quadcap.app.dbimage.DbImageServlet.getConnection().

Referenced by com.quadcap.app.dbimage.ActionLoad.service().

void com.quadcap.app.dbimage.ActionLoad.init ServletConfig  config  ) 
 

Implements com.quadcap.app.dbimage.Action.

Definition at line 74 of file ActionLoad.java.

References com.quadcap.app.dbimage.ActionLoad.init().

Referenced by com.quadcap.app.dbimage.ActionLoad.init().

void com.quadcap.app.dbimage.ActionLoad.service HttpServletRequest  request,
HttpServletResponse  response
throws Exception
 

Implements com.quadcap.app.dbimage.Action.

Definition at line 78 of file ActionLoad.java.

References com.quadcap.app.dbimage.ActionLoad.errorPage, com.quadcap.app.dbimage.ActionLoad.forward(), com.quadcap.app.dbimage.ActionLoad.getConnection(), com.quadcap.app.dbimage.DbImageLoader.loadImages(), com.quadcap.app.dbimage.ActionLoad.service(), and com.quadcap.app.dbimage.ActionLoad.successPage.

Referenced by com.quadcap.app.dbimage.ActionLoad.service().


Member Data Documentation

ServletConfig com.quadcap.app.dbimage.ActionLoad.config [package]
 

Definition at line 63 of file ActionLoad.java.

Referenced by com.quadcap.app.dbimage.ActionLoad.forward(), and com.quadcap.app.dbimage.ActionLoad.getConnection().

final String com.quadcap.app.dbimage.ActionLoad.errorPage = "/error.jsp" [static, package]
 

We've hard-coded the names of the result JSP pages; if we wanted more flexibility, we could make these configuration parameters.

Definition at line 69 of file ActionLoad.java.

Referenced by com.quadcap.app.dbimage.ActionLoad.service().

final String com.quadcap.app.dbimage.ActionLoad.successPage = "/show.jsp" [static, package]
 

Definition at line 70 of file ActionLoad.java.

Referenced by com.quadcap.app.dbimage.ActionLoad.service().