public class HTTPQuery
extends HttpServlet
Constructor and Description |
---|
HTTPQuery() |
Modifier and Type | Method and Description |
---|---|
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
|
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 stylesheetjava.lang.Exception
public Document XSLTTransformer(Document xmlDoc, java.io.InputStream styleIn) throws java.lang.Exception
xmlDoc
- Specifies the xml documentstyleIn
- specifies the stylesheetjava.lang.Exception