public interface ContentProcessor extends Public
init(de.espirit.firstspirit.access.GenerationContext,java.io.OutputStream)
is called.getWriter()
).finish()
.Modifier and Type | Method and Description |
---|---|
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
getWriter() has been
closed . |
Writer |
getWriter()
This method is called after
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 . |
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 instanceIOException
Writer getWriter() throws IOException
init(de.espirit.firstspirit.access.GenerationContext,java.io.OutputStream)
.IOException
void finish() throws IOException
getWriter()
has been
closed
.IOException
void cleanUp()
boolean needsPrivilegedAccessToMediafiles()
true
. Else every request to an media url will answered with the http error 403
(forbidden).Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500