public abstract class BaseDownloadContentServlet extends BaseServlet
BaseServlet.PathRefInfo| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ARG_PATH |
protected static java.lang.String |
ARG_PROPERTY |
protected static java.lang.String |
MIMETYPE_OCTET_STREAM |
protected static java.lang.String |
MSG_ERROR_CONTENT_MISSING |
protected static java.lang.String |
MSG_ERROR_NOT_FOUND |
protected static java.lang.String |
URL_ATTACH |
protected static java.lang.String |
URL_ATTACH_LONG |
protected static java.lang.String |
URL_DIRECT |
protected static java.lang.String |
URL_DIRECT_LONG |
FACES_SERVLET, KEY_ROOT_PATH, KEY_STORE| Constructor and Description |
|---|
BaseDownloadContentServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.String |
generateUrl(java.lang.String pattern,
org.alfresco.service.cmr.repository.NodeRef ref,
java.lang.String name)
Helper to generate a URL to a content node for downloading content from the server.
|
protected abstract org.apache.commons.logging.Log |
getLogger()
Gets the logger to use for this request.
|
protected void |
processDownloadRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
boolean allowLogIn,
boolean transmitContent)
Processes the download request using the current context i.e.
|
checkAccess, getServiceRegistry, redirectToLoginPage, resolveNamePath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, servletAuthenticate, servletAuthenticate, setNoCacheHeaders, validRedirectJSPdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected static final java.lang.String MIMETYPE_OCTET_STREAM
protected static final java.lang.String MSG_ERROR_CONTENT_MISSING
protected static final java.lang.String MSG_ERROR_NOT_FOUND
protected static final java.lang.String URL_DIRECT
protected static final java.lang.String URL_DIRECT_LONG
protected static final java.lang.String URL_ATTACH
protected static final java.lang.String URL_ATTACH_LONG
protected static final java.lang.String ARG_PROPERTY
protected static final java.lang.String ARG_PATH
protected abstract org.apache.commons.logging.Log getLogger()
This will show all debug entries from this class as though they came from the subclass.
protected void processDownloadRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
boolean allowLogIn,
boolean transmitContent)
throws javax.servlet.ServletException,
java.io.IOException
req - The HTTP requestres - The HTTP responseallowLogIn - Indicates whether guest users without access to the content should be redirected to the log in page. If
false, a status 403 forbidden page is displayed instead.javax.servlet.ServletExceptionjava.io.IOExceptionprotected static final java.lang.String generateUrl(java.lang.String pattern,
org.alfresco.service.cmr.repository.NodeRef ref,
java.lang.String name)
pattern - The pattern to use for the URLref - NodeRef of the content node to generate URL for (cannot be null)name - File name to return in the URL (cannot be null)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.