|
fop 0.93 | ||||||||||
| 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
org.apache.fop.servlet.FopServlet
org.apache.fop.servlet.FopPrintServlet
Example servlet to generate a fop printout from a servlet. Printing goes to the default printer on host where the servlet executes. Servlet param is:
| Field Summary |
| Fields inherited from class org.apache.fop.servlet.FopServlet |
FO_REQUEST_PARAM, fopFactory, log, transFactory, uriResolver, XML_REQUEST_PARAM, XSLT_REQUEST_PARAM |
| Constructor Summary | |
FopPrintServlet()
|
|
| Method Summary | |
protected void |
render(javax.xml.transform.Source src,
javax.xml.transform.Transformer transformer,
javax.servlet.http.HttpServletResponse response)
Renders an input file (XML or XSL-FO) into a PDF file. |
| Methods inherited from class org.apache.fop.servlet.FopServlet |
configureFopFactory, convertString2Source, doGet, getFOUserAgent, init, renderFO, renderXML |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FopPrintServlet()
| Method Detail |
protected void render(javax.xml.transform.Source src,
javax.xml.transform.Transformer transformer,
javax.servlet.http.HttpServletResponse response)
throws FOPException,
javax.xml.transform.TransformerException,
java.io.IOException
FopServlet
render in class FopServletsrc - Input XML or XSL-FOtransformer - Transformer to use for optional transformationresponse - HTTP response object
java.io.IOException - In case of an I/O problem
FOPException - If an error occurs during the rendering of the
XSL-FO
javax.xml.transform.TransformerException - If an error occurs during XSL
transformationFopServlet.render(javax.xml.transform.Source,
javax.xml.transform.Transformer, javax.servlet.http.HttpServletResponse)
|
fop 0.93 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||