|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
gov.nih.nci.system.web.HTTPQuery
public class HTTPQuery
The HTTPQuery servlet interpretes a query request and makes appropriate calls to the Application Service interface. The results are sent back to the user as an XML or HTML document based on the type of request made. XQuery like syntax is used to generate the query. Syntax: http://server:port/servlet/queryType?query=targetClassName&criteriaClassName[@attribute=value][association[@attribute=value]] Please refer to the cacore documentation for more information on generating a query request.
Constructor Summary | |
---|---|
HTTPQuery()
|
Method Summary | |
---|---|
void |
destroy()
Unload servlet |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Handles Get requests |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Handls Post requests |
Document |
getHTMLDocument(Document doc,
java.lang.String styleSheet)
Generates an HTML Document for a given XML document with the given stylesheet specification |
void |
init(ServletConfig config)
Initialize the servlet |
Document |
XSLTTransformer(Document xmlDoc,
java.io.InputStream styleIn)
Generates an XML or HTML document based on a given stylesheet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HTTPQuery()
Method Detail |
---|
public void init(ServletConfig config) throws ServletException
ServletException
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public void destroy()
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
public Document getHTMLDocument(Document doc, java.lang.String styleSheet) throws java.lang.Exception
doc
- Specifies the XML documentstyleSheet
- Specifies the stylesheet
java.lang.Exception
public Document XSLTTransformer(Document xmlDoc, java.io.InputStream styleIn) throws java.lang.Exception
xmlDoc
- Specifies the xml documentstyleIn
- specifies the stylesheet
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |