com.xmlserv.app.news
Class CommentThread
java.lang.Object
|
+--com.xmlserv.main.XMLServBackendImpl
|
+--com.xmlserv.app.AppBase
|
+--com.xmlserv.app.news.CommentThread
- All Implemented Interfaces:
- XMLServBackend
- public class CommentThread
- extends AppBase
Method Summary |
protected boolean |
hasChildren(java.lang.String id,
java.sql.Connection con)
|
void |
init()
Initialize object when application is loaded by BackendRepository.
|
static void |
main(java.lang.String[] args)
|
org.jdom.Document |
process(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
SecurityManager securitymanager)
This is the method to override in subclasses. |
protected org.jdom.Element |
readElement(java.lang.String commentid,
java.sql.Connection con,
SecurityManager securitymanager,
javax.servlet.http.HttpServletRequest req,
boolean canDelete)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommentThread
public CommentThread()
init
public void init()
throws javax.servlet.ServletException
- Description copied from class:
AppBase
- Initialize object when application is loaded by BackendRepository.
This initializes the connection pool shared across all instances
if not already present.
- Overrides:
init
in class AppBase
- Following copied from class:
com.xmlserv.app.AppBase
- Throws:
javax.servlet.ServletException
- On any error.- See Also:
PGConnectionPool
process
public org.jdom.Document process(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
SecurityManager securitymanager)
throws XMLServException,
javax.servlet.ServletException,
java.io.IOException
- Description copied from class:
XMLServBackendImpl
- This is the method to override in subclasses.
- Overrides:
process
in class AppBase
- Following copied from class:
com.xmlserv.main.XMLServBackendImpl
- Parameters:
context
- The servlet context.req
- The HTTP request.securitymanager
- The SecurityManager instance associated with this object.- Returns:
- An XML document.
- Throws:
XMLServException
- Indicates an error condition in the business logic.javax.servlet.ServletException
- A generic failure.java.io.IOException
- Any I/O error condition.
hasChildren
protected boolean hasChildren(java.lang.String id,
java.sql.Connection con)
throws java.sql.SQLException
readElement
protected org.jdom.Element readElement(java.lang.String commentid,
java.sql.Connection con,
SecurityManager securitymanager,
javax.servlet.http.HttpServletRequest req,
boolean canDelete)
throws XMLServException,
java.sql.SQLException
main
public static void main(java.lang.String[] args)