public class FileServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description |
|---|---|
static interface |
FileServlet.BinaryRangesSupport
Interface to set on javax.jcr.Binary implementation to set range support
If ranges are not supported, the entire file will be download each time
|
class |
FileServlet.FileDownloadEvent |
| Constructor and Description |
|---|
FileServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res) |
protected String |
generateETag(String uuid,
long lastModified) |
protected JCRNodeWrapper |
getContentNode(JCRNodeWrapper n,
String thumbnail) |
protected FileCacheEntry |
getFileEntry(org.jahia.services.content.files.FileKey fileKey,
JCRNodeWrapper node,
FileLastModifiedCacheEntry lastModifiedEntry) |
protected JCRNodeWrapper |
getNode(org.jahia.services.content.files.FileKey fileKey) |
void |
init(javax.servlet.ServletConfig config) |
protected boolean |
isNotModified(org.jahia.services.content.files.FileKey fileKey,
FileLastModifiedCacheEntry lastModifiedEntry,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
logAccess(org.jahia.services.content.files.FileKey fileKey,
javax.servlet.http.HttpServletRequest req,
String status) |
protected org.jahia.services.content.files.FileKey |
parseKey(javax.servlet.http.HttpServletRequest req) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected JCRNodeWrapper getContentNode(JCRNodeWrapper n, String thumbnail) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected FileCacheEntry getFileEntry(org.jahia.services.content.files.FileKey fileKey, JCRNodeWrapper node, FileLastModifiedCacheEntry lastModifiedEntry) throws javax.jcr.RepositoryException, IOException
javax.jcr.RepositoryExceptionIOExceptionprotected JCRNodeWrapper getNode(org.jahia.services.content.files.FileKey fileKey)
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected boolean isNotModified(org.jahia.services.content.files.FileKey fileKey,
FileLastModifiedCacheEntry lastModifiedEntry,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected void logAccess(org.jahia.services.content.files.FileKey fileKey,
javax.servlet.http.HttpServletRequest req,
String status)
protected org.jahia.services.content.files.FileKey parseKey(javax.servlet.http.HttpServletRequest req)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.