org.alfresco.web.app.servlet
Class DownloadRawContentServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.alfresco.web.app.servlet.BaseServlet
org.alfresco.web.app.servlet.DownloadRawContentServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class DownloadRawContentServlet
- extends BaseServlet
A serlet that provides direct access to the content stores via a content URL.
Requests can be of the form:
/alfresco/downloadDirect?contentUrl=some-url?ticket=auth?infoOnly=value
contentUrl is a ContentStore-specific URL
ticket is a valid authentication token for an admin user
infoOnly is set to true to leave off the binary stream and just send
the data about the content.
This serlet is intended to be accessed to retrieve the binary content from
the content stores. If you wish to retrieve content from a client, use
the other content download servlets available.
The following responses are generated:
- Contet not found: 204 NO CONTENT
- Access denied: 403 FORBIDDEN
The following header values are set:
- alfresco.dr.size: The content size
- alfresco.dr.lastModified: The last modified date
- alfresco.dr.mimetype: The content mimetype
- alfresco.dr.encoding: The content encoding
- alfresco.dr.locale: The content locale
Note that the mimetype, encoding and locale generally fallback to the default
as implemented by the raw reader.
- Since:
- 2.1
- See Also:
- Serialized Form
Method Summary |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
Methods inherited from class org.alfresco.web.app.servlet.BaseServlet |
checkAccess, getServiceRegistry, redirectToLoginPage, resolveNamePath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, resolveWebDAVPath, servletAuthenticate, servletAuthenticate, setNoCacheHeaders, validRedirectJSP |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadRawContentServlet
public DownloadRawContentServlet()
service
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
service
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.