|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.hsqldb.Servlet
Servlet can act as an interface between the client and the database for the the client / server mode of HSQL Database Engine. It uses the HTTP protocol for communication. This class is not required if the included HSQLDB Weberver is used on the server host. But if the host is running a J2EE application server or a servlet container such as Tomcat, the Servlet class can be hosted on this server / container to serve external requests from external hosts.
The remote applet / application should use the normal JDBC interfaces to connect to the URL of this servlet. An example URL is:
jdbc:hsqldb:http://localhost.com:8080/servlet/org.hsqldb.ServletThe database name is taken from the servlet engine property:
hsqldb.server.database
From version 1.7.2 JDBC connections via the HTTP protocol are persistent in the JDBC sense. The JDBC Connection that is established can support transactions spanning several Statement calls and real PreparedStatement calls are supported. This class has been rewritten to support the new features. (fredt@users)
Constructor Summary | |
Servlet()
|
Method Summary | |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method declaration |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Method declaration |
protected long |
getLastModified(javax.servlet.http.HttpServletRequest req)
Method declaration |
void |
init(javax.servlet.ServletConfig config)
Method declaration |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, 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, toString, wait, wait, wait |
Constructor Detail |
public Servlet()
Method Detail |
public void init(javax.servlet.ServletConfig config)
protected long getLastModified(javax.servlet.http.HttpServletRequest req)
req
-
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
request
- response
-
IOException
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
request
- response
-
IOException
javax.servlet.ServletException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |