|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.spy.jwebkit.JWHttpServlet
net.spy.jwebkit.xml.XMLOutputServlet
public class XMLOutputServlet
Servlet that serializes DOM trees to the response.
| Field Summary | |
|---|---|
static java.lang.String |
DOCUMENT
Name of the request holding the DOM tree. |
| Constructor Summary | |
|---|---|
XMLOutputServlet()
|
|
| Method Summary | |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get an XML document from the request attribute and send it as text/xml. |
protected org.xml.sax.ContentHandler |
getContentHandler(javax.servlet.http.HttpServletResponse res)
Get an XML Content handler for streaming SAXAbles. |
protected void |
sendXml(org.w3c.dom.Document doc,
javax.servlet.http.HttpServletResponse response)
Send an XML document as text/xml. |
protected void |
sendXml(net.spy.xml.SAXAble s,
javax.servlet.http.HttpServletResponse response)
Send a SAX response with the default XML type. |
protected void |
sendXml(java.lang.String type,
org.w3c.dom.Document doc,
javax.servlet.http.HttpServletResponse response)
Send XML with a specific content type. |
protected void |
sendXml(java.lang.String type,
net.spy.xml.SAXAble s,
javax.servlet.http.HttpServletResponse response)
Send a SAX response. |
| Methods inherited from class net.spy.jwebkit.JWHttpServlet |
|---|
getContextRelativeFilePathParameter, getLogger, sendHTML, sendPlain, sendSimple, service, service |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DOCUMENT
| Constructor Detail |
|---|
public XMLOutputServlet()
| Method Detail |
|---|
protected void sendXml(java.lang.String type,
org.w3c.dom.Document doc,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
type - the content typedoc - the documentresponse - the response
java.io.IOException
protected void sendXml(java.lang.String type,
net.spy.xml.SAXAble s,
javax.servlet.http.HttpServletResponse response)
throws org.xml.sax.SAXException,
java.io.IOException
s - the saxableresponse - the response
org.xml.sax.SAXException
java.io.IOException
protected void sendXml(net.spy.xml.SAXAble s,
javax.servlet.http.HttpServletResponse response)
throws org.xml.sax.SAXException,
java.io.IOException
s - the SAXAbleresponse - the response object
org.xml.sax.SAXException
java.io.IOException
protected void sendXml(org.w3c.dom.Document doc,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
doc - the documentresponse - the response
java.io.IOException
protected org.xml.sax.ContentHandler getContentHandler(javax.servlet.http.HttpServletResponse res)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletrequest - the requestresponse - the response
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||