public class DocumentPreview
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
DOC_ID |
protected static org.slf4j.Logger |
log |
protected static String |
SUFFIX
Format can be thumb.jpg or preview.swf
|
Constructor and Description |
---|
DocumentPreview()
Constructor of the object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createPreviewResource(Document doc,
String fileVersion,
String resource)
Creates the preview resource according to the specified format storing it
in the repository for future access.
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The doGet method of the servlet.
|
protected void |
forwardEmptyPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String suffix) |
protected void |
forwardPreviewNotAvailable(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String suffix) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected static final String SUFFIX
public static final String DOC_ID
protected static org.slf4j.Logger log
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
request
- the request send by the client to the serverresponse
- the response send by the server to the clientjavax.servlet.ServletException
- if an error occurredIOException
- if an error occurredprotected void createPreviewResource(Document doc, String fileVersion, String resource)
protected void forwardPreviewNotAvailable(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String suffix)
protected void forwardEmptyPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String suffix)
Copyright © 2008-2014 Logical Objects. All Rights Reserved.