com.knowgate.http
Class HttpBLOBServlet

java.lang.Object
  extended by HttpServlet
      extended by com.knowgate.http.HttpBLOBServlet

public class HttpBLOBServlet
extends HttpServlet

Send LONGVARBINARY database field to HttpServletResponse OutputStream


Constructor Summary
HttpBLOBServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          Send LONGVARBINARY database field to HttpServletResponse OutputStream
 void init()
          Initialize Servlet Parameters Take Database Driver, Conenction URL and User from /WEB-INF/web.xml.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpBLOBServlet

public HttpBLOBServlet()
Method Detail

init

public void init()
          throws ServletException

Initialize Servlet Parameters

Take Database Driver, Conenction URL and User from /WEB-INF/web.xml.
If any parameter is not found then look it up at hipergate.cnf Properties file using Environment singleton.

Throws:
ServletException
UnavailableException - If jdbcDriverClassName parameter is not found and driver property at hipergate.cnf is not found or if jdbcURL parameter is not found and dburl property at hipergate.cnf is not found.
See Also:
Environment

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws java.io.IOException,
                  java.io.FileNotFoundException,
                  ServletException

Send LONGVARBINARY database field to HttpServletResponse OutputStream

Parameters:
nm_table - Name of table holding longvarbinary field.
response -
Throws:
java.io.IOException
java.io.FileNotFoundException
ServletException