Package com.saperion.ngc.servlet.process
Class PdfRenderProcess
- java.lang.Object
-
- java.lang.Thread
-
- com.saperion.ngc.servlet.process.LongRunningProcess
-
- com.saperion.ngc.servlet.process.PdfRenderProcess
-
- All Implemented Interfaces:
java.lang.Runnable
public class PdfRenderProcess extends LongRunningProcess
Thread used to do the actual rendering and merging of the documents.
-
-
Field Summary
-
Fields inherited from class com.saperion.ngc.servlet.process.LongRunningProcess
bean, canceled, connectionProvider, CONTROL_BEAN_SESSION_ATTR, error, progress, session
-
-
Constructor Summary
Constructors Constructor Description PdfRenderProcess(LRPControlBean bean, javax.servlet.http.HttpSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
void
writeResult(javax.servlet.http.HttpServletResponse response)
Writes the result of the process to the output-stream.-
Methods inherited from class com.saperion.ngc.servlet.process.LongRunningProcess
cancel, getProgress, isError, updateProgress
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
PdfRenderProcess
public PdfRenderProcess(LRPControlBean bean, javax.servlet.http.HttpSession session)
- Parameters:
bean
- the control bean that contains the content to rendersession
- the current session
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
writeResult
public void writeResult(javax.servlet.http.HttpServletResponse response) throws java.io.IOException, SystemException
Description copied from class:LongRunningProcess
Writes the result of the process to the output-stream.- Specified by:
writeResult
in classLongRunningProcess
- Parameters:
response
- servlet response to write to- Throws:
java.io.IOException
- IO Exception when writingSystemException
- generic exception when writing
-
-