|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.web.servlet.ServletDocumentTransformHelper
public class ServletDocumentTransformHelper
Name: ServletDocumentTransformHelper
Description: A helper class that eases the output of the DocumentTransformHelper within servlets.
Constructor Summary | |
---|---|
ServletDocumentTransformHelper()
Constructs a ServletDocumentPrinter instance with no specific attributes. |
Method Summary | |
---|---|
void |
finish(HttpServletResponse response)
Finishes the document processing. |
DocumentTransformHelper |
getTransformHelper()
Gets the document transform helper instance. |
Result |
prepare(HttpServletRequest request,
boolean supportToc)
Generates a PDF and writes it to the servlet output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletDocumentTransformHelper()
Method Detail |
---|
public DocumentTransformHelper getTransformHelper()
public Result prepare(HttpServletRequest request, boolean supportToc) throws IOException, UjacException
request
- The HTTP request.supportToc
- Tells whether or not to support the output of a leading table of contents.
Notice: if you use this option, the main document will be completely generated in memory,
this may lead to problems if you process huge documents.
IOException
- In case an I/O problem occurred.
UjacException
- In case an UJAC related problem occurred.public void finish(HttpServletResponse response) throws UjacException, IOException
response
- The HTTP response to write the output to.
IOException
- In case something went wrong during output.
UjacException
- In case an UJAC related problem occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |