|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.web.servlet.ServletDocumentPrinter
public class ServletDocumentPrinter
Name: ServletDocumentPrinter
Description: A helper class that eases the usage of the DocumentPrinter within servlets.
| Constructor Summary | |
|---|---|
ServletDocumentPrinter(InputStream templateStream,
Map properties)
Constructs a ServletDocumentPrinter instance with no specific attributes. |
|
ServletDocumentPrinter(String templateSource,
Map properties)
Constructs a ServletDocumentPrinter instance with no specific attributes. |
|
| Method Summary | |
|---|---|
DocumentPrinter |
getDocumentPrinter()
Gets the document printer instance. |
void |
printDocument(HttpServletRequest request,
HttpServletResponse response)
Generates a PDF and writes it to the servlet output stream. |
void |
printDocument(HttpServletRequest request,
HttpServletResponse response,
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 ServletDocumentPrinter(String templateSource,
Map properties)
throws IOException
templateSource - The template source which is loaded from the class path.properties - The document's properties.
IOException - In case the template could not be read.
public ServletDocumentPrinter(InputStream templateStream,
Map properties)
throws IOException
templateStream - The template input stream.properties - The document's properties.
IOException - In case the template could not be read.| Method Detail |
|---|
public DocumentPrinter getDocumentPrinter()
public void printDocument(HttpServletRequest request,
HttpServletResponse response)
throws IOException,
UjacException
request - The HTTP request.response - The HTTP response.
IOException - In case an I/O problem occurred.
UjacException - In case an UJAC related problem occurred.
public void printDocument(HttpServletRequest request,
HttpServletResponse response,
boolean supportToc)
throws IOException,
UjacException
request - The HTTP request.response - The HTTP response.supportToc - Tells whether or not to support the output of a leading table of contents.
IOException - In case an I/O problem occurred.
UjacException - In case an UJAC related problem occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||