|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the signature of a Backend module for XMLServ. A Backend is the business logic that produces XML content which is then processed by the XMLServ Servlet calling the Backends process() routine.
Method Summary | |
void |
addParam(java.lang.String paramname,
java.lang.String paramvalue)
Add a parameter read from the config.xml file. |
void |
destroy()
Free resources. |
java.lang.String |
getParam(java.lang.String paramname)
Get a parameter value. |
java.lang.String |
getStatus()
Return a short (one-line) status report. |
void |
init()
Initialize the Backend. |
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)
The main method. |
Method Detail |
public void init() throws javax.servlet.ServletException
public void destroy()
public java.lang.String getStatus()
public void addParam(java.lang.String paramname, java.lang.String paramvalue)
paramname
- The name of this parameter.paramvalue
- The parameters value.public java.lang.String getParam(java.lang.String paramname)
paramname
- The name of the parameter.public org.jdom.Document process(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager) throws XMLServException, javax.servlet.ServletException, java.io.IOException
context
- The servlet context.req
- The request object.securitymanager
- The securitymanager instance associated with this Backend.XMLServException
- An error condition in the business logic.javax.servlet.ServletException
- Generic error condition in the request.java.io.IOException
- Any IO error.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |