|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface ContentProcessor
A content processor can alter or transform the produced content during the generation process.
During generation the usage of a content processor instance compomises three steps:
ContentProcessor.init(de.espirit.firstspirit.access.GenerationContext,java.io.OutputStream) is called.ContentProcessor.getWriter()).ContentProcessor.finish().
| Method Summary | |
|---|---|
void |
cleanUp()
Called in case of failure to allow gracefully clean up (of resources, file handles, etc). |
void |
finish()
This method is called after all content has been written and the writer from ContentProcessor.getWriter() has been
closed. |
Writer |
getWriter()
This method is called after ContentProcessor.init(de.espirit.firstspirit.access.GenerationContext,java.io.OutputStream). |
void |
init(GenerationContext gc,
OutputStream out)
|
boolean |
needsPrivilegedAccessToMediafiles()
If during preview processing a content processor needs to access referenced media files the implementation must return true. |
| Method Detail |
|---|
void init(GenerationContext gc,
OutputStream out)
throws IOException
gc - the generation contextout - the output stream where the processed content should be directed to by this instance
IOException
Writer getWriter()
throws IOException
ContentProcessor.init(de.espirit.firstspirit.access.GenerationContext,java.io.OutputStream).
IOException
void finish()
throws IOException
ContentProcessor.getWriter() has been
closed.
IOExceptionvoid cleanUp()
boolean needsPrivilegedAccessToMediafiles()
true. Else every request to an media url will answered with the http error 403
(forbidden).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||