|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.event.PDFOutputEvent
public class PDFOutputEvent
Outputs a PDF via Fop.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.torweg.pulse.service.event.Event |
|---|
Event.Disposition |
| Constructor Summary | |
|---|---|
PDFOutputEvent(XSLHandle xsl)
creates a new PDFOutputEvent with the given XSL. |
|
PDFOutputEvent(XSLHandle xsl,
java.lang.String name, Event.Disposition contentDisposition)
creates a new PDFOutputEvent as download with the given XSL. |
|
| Method Summary | |
|---|---|
void |
addTemoraryResource(java.io.File file)
adds a temporary resource. |
CacheMode |
getCacheMode()
returns the CacheMode. |
Event.Disposition |
getDisposition()
returns the Content-Dispostion. |
boolean |
isOutputEvent()
returns true. |
boolean |
isSingularEvent()
Indicates that the Event will only be added once to the
EventManager and block all other Events. |
boolean |
isStopEvent()
returns true. |
void |
run(ServiceRequest req)
starts the PDF output base on the given XSL. |
void |
setCacheMode(CacheMode c)
sets the CacheMode. |
void |
setDisposition(Event.Disposition disp)
sets the Content-Disposition. |
void |
setResultSet(ResultSet rs)
sets the ResultSet to be used for output generation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDFOutputEvent(XSLHandle xsl)
PDFOutputEvent with the given XSL.
xsl - the XSLT document to be used for generating the XSL-FO
document
public PDFOutputEvent(XSLHandle xsl,
java.lang.String name, Event.Disposition contentDisposition)
PDFOutputEvent as download with the given XSL.
xsl - the XSLT document to be used for generating the XSL-FO
documentname - the name for the PDFcontentDisposition - the content-disposition| Method Detail |
|---|
public final boolean isOutputEvent()
true.
isOutputEvent in interface EventtrueEvent.isOutputEvent()public final boolean isStopEvent()
true.
isStopEvent in interface EventtrueEvent.isStopEvent()public final boolean isSingularEvent()
EventEvent will only be added once to the
EventManager and block all other Events.
If an Event of the same type has already been added to the
EventManager, subsequent calls to
EventManager.addEvent(Event) will return without adding the given
Event.
isSingularEvent in interface EventtrueEvent.isSingularEvent()public final CacheMode getCacheMode()
CacheMode.
getCacheMode in interface EventEvent.getCacheMode()public final void setCacheMode(CacheMode c)
CacheMode.
setCacheMode in interface Eventc - the cache mode to setEvent.setCacheMode(org.torweg.pulse.service.request.CacheMode)public final Event.Disposition getDisposition()
public final void setDisposition(Event.Disposition disp)
disp - the disposition to setpublic final void run(ServiceRequest req)
run in interface Eventreq - the current requestpublic final void setResultSet(ResultSet rs)
ResultSet to be used for output generation.
setResultSet in interface ResultAwareEventrs - the ResultSet to be used for output generationpublic final void addTemoraryResource(java.io.File file)
file - the resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||