Quadcap Image Database

com.quadcap.app.dbimage.DbImageServlet Class Reference

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

HttpServlet List of all members.

Detailed Description

This servlet fetches and returns images from the database.

Author:
Stan Bailes

Definition at line 81 of file DbImageServlet.java.

Public Member Functions

void init (ServletConfig config) throws ServletException
Connection getConnection () throws SQLException
void doGet (HttpServletRequest request, HttpServletResponse response) throws ServletException

Package Functions

byte[] resizeImage (byte[] imageBytes, int maxDim) throws IOException
void sendImage (byte[] image, HttpServletResponse response) throws ServletException, IOException
void storeImage (Connection conn, byte[] image, String name, int dim) throws SQLException

Package Attributes

String url = null


Member Function Documentation

void com.quadcap.app.dbimage.DbImageServlet.doGet HttpServletRequest  request,
HttpServletResponse  response
throws ServletException
 

Definition at line 195 of file DbImageServlet.java.

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

Referenced by com.quadcap.app.dbimage.DbImageServlet.doGet().

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

Definition at line 125 of file DbImageServlet.java.

References com.quadcap.app.dbimage.DbImageServlet.url.

Referenced by com.quadcap.app.dbimage.DbImageServlet.doGet(), com.quadcap.app.dbimage.ActionLoad.getConnection(), and com.quadcap.app.dbimage.DbImageServlet.init().

void com.quadcap.app.dbimage.DbImageServlet.init ServletConfig  config  )  throws ServletException
 

Definition at line 84 of file DbImageServlet.java.

References com.quadcap.app.dbimage.DbImageServlet.getConnection(), com.quadcap.app.dbimage.DbImageServlet.init(), and com.quadcap.app.dbimage.DbImageServlet.url.

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

byte [] com.quadcap.app.dbimage.DbImageServlet.resizeImage byte[]  imageBytes,
int  maxDim
throws IOException [package]
 

Definition at line 131 of file DbImageServlet.java.

References com.quadcap.app.dbimage.DbImageServlet.resizeImage().

Referenced by com.quadcap.app.dbimage.DbImageServlet.resizeImage().

void com.quadcap.app.dbimage.DbImageServlet.sendImage byte[]  image,
HttpServletResponse  response
throws ServletException, IOException [package]
 

Definition at line 173 of file DbImageServlet.java.

References com.quadcap.app.dbimage.DbImageServlet.sendImage().

Referenced by com.quadcap.app.dbimage.DbImageServlet.sendImage().

void com.quadcap.app.dbimage.DbImageServlet.storeImage Connection  conn,
byte[]  image,
String  name,
int  dim
throws SQLException [package]
 

Definition at line 181 of file DbImageServlet.java.

References com.quadcap.app.dbimage.DbImageServlet.storeImage().

Referenced by com.quadcap.app.dbimage.DbImageServlet.storeImage().


Member Data Documentation

String com.quadcap.app.dbimage.DbImageServlet.url = null [package]
 

Definition at line 82 of file DbImageServlet.java.

Referenced by com.quadcap.app.dbimage.DbImageServlet.getConnection(), and com.quadcap.app.dbimage.DbImageServlet.init().