| javax.servlet.http.HttpServlet org.hsqldb.Servlet
Servlet | public class Servlet extends javax.servlet.http.HttpServlet (Code) | | 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.Servlet
The database path/name is taken from the servlet engine property:
hsqldb.server.database
If the database is deployed in the WEB-INF directory of the servlet container,
the property:
hsqldb.server.use_web-inf_path
should be set "true" in the web.xml file of the servlet container.
In this case, the database path should not begin with a "/".
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)
Extensively rewritten for HSQLDB.
author: Thomas Mueller (Hypersonic SQL Group) version: 1.7.2 since: Hypersonic SQL |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|