org.alfresco.web.app.servlet
Class DownloadRawContentServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.alfresco.web.app.servlet.BaseServlet
              extended by 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:

The following header values are set: 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.web.app.servlet.BaseServlet
BaseServlet.PathRefInfo
 
Field Summary
 
Fields inherited from class org.alfresco.web.app.servlet.BaseServlet
FACES_SERVLET, KEY_ROOT_PATH, KEY_STORE
 
Constructor Summary
DownloadRawContentServlet()
           
 
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
 

Constructor Detail

DownloadRawContentServlet

public DownloadRawContentServlet()
Method Detail

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.