|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.GenericServlet | +--javax.servlet.http.HttpServlet | +--ccl.servlet.XMLExporter
This servlet provides code to export data from a database and print them out as xml. To make use of this class inherit from this one and implement the 'getConnection' and 'getDatabase' methods.
Constructor Summary | |
XMLExporter()
|
Method Summary | |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Invoked from the servlet engine to serve the database content as xml page. |
abstract java.sql.Connection |
getConnection()
Creates a connection object in the class which uses this class. |
abstract java.lang.String |
getDatabase()
Returns a database name used for the xml to specify this database. |
static java.lang.String |
printEscaped(char ch)
Deprecated. Use ccl.xml.XMLUtil.escaped(char) instead. |
static java.lang.String |
printEscaped(java.lang.String source)
Deprecated. Use ccl.xml.XMLUtil.escaped(String) instead. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLExporter()
Method Detail |
public static java.lang.String printEscaped(char ch)
public static java.lang.String printEscaped(java.lang.String source)
source
- the string to escape or "" for null.public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
java.io.IOException
- in case anything goes wrong
writing output to the http
servlet response.
javax.servlet.ServletException
- in case the servlet has a failure.public abstract java.sql.Connection getConnection()
public abstract java.lang.String getDatabase()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |