|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.main.XMLServBackendImpl
Implementation of the XMLServBackend interface with basic usage statistics and a HashMap based parameter store.
Constructor Summary | |
XMLServBackendImpl()
Create object. |
Method Summary | |
void |
addParam(java.lang.String paramname,
java.lang.String paramvalue)
Store parameter. |
void |
destroy()
Free resources. |
java.lang.String |
getParam(java.lang.String paramname)
Get a parameter value. |
protected int |
getReqCount()
Get number of requests serviced. |
java.lang.String |
getStatus()
Status report. |
void |
init()
Initialize. |
javax.xml.transform.Source |
process(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
SecurityManager securitymanager)
This variant of the main method is called when the BackendHandle indicates that this Backend produces binary data which should be sent to the client without further processing. |
org.jdom.Document |
process(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
SecurityManager securitymanager)
This is the method to override in subclasses. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLServBackendImpl()
Method Detail |
public void init() throws javax.servlet.ServletException
init
in interface XMLServBackend
public void destroy()
destroy
in interface XMLServBackend
public java.lang.String getStatus()
getStatus
in interface XMLServBackend
public org.jdom.Document process(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager) throws XMLServException, javax.servlet.ServletException, java.io.IOException
process
in interface XMLServBackend
context
- The servlet context.req
- The HTTP request.securitymanager
- The SecurityManager instance associated with this object.XMLServException
- Indicates an error condition in the business logic.javax.servlet.ServletException
- A generic failure.java.io.IOException
- Any I/O error condition.public javax.xml.transform.Source process(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, SecurityManager securitymanager) throws XMLServException, javax.servlet.ServletException, java.io.IOException
XMLServBackend
process
in interface XMLServBackend
com.xmlserv.main.XMLServBackend
public void addParam(java.lang.String paramname, java.lang.String paramvalue)
addParam
in interface XMLServBackend
com.xmlserv.main.XMLServBackend
paramname
- The name of this parameter.paramvalue
- The parameters value.public java.lang.String getParam(java.lang.String paramname)
getParam
in interface XMLServBackend
paramname
- The name of the parameter.protected int getReqCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |