public class FileDownloadServlet
extends HttpServlet
ContentSets, one for each
JaloSession. Those sets are stored using weak references. So if a JaloSession expires the ContentSets will be dropped. Each ContentSets consists of instances of FileDownloadServlet.ContentSet.Content
. FileDownloadServlet.ContentSet.Content also has an id. You will need this to create the download url. The download link has
to include the parameter CONTENT with the id of the FileDownloadServlet.ContentSet.Content as value.| Modifier and Type | Class and Description |
|---|---|
static class |
FileDownloadServlet.ContentSet
A ContentSet manages the storing and retrieval of
FileDownloadServlet.ContentSet.Content elements. |
| Constructor and Description |
|---|
FileDownloadServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Handles the HTTP
GET method. |
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Handles the HTTP
POST method. |
static FileDownloadServlet.ContentSet |
getContentSet(JaloSession jaloSession) |
String |
getServletInfo()
Returns a short description of the servlet.
|
protected void |
processRequest(HttpServletRequest request,
HttpServletResponse response)
Processes requests for both HTTP
GET and POST methods. |
public static final String CONTENT
public static FileDownloadServlet.ContentSet getContentSet(JaloSession jaloSession)
protected void processRequest(HttpServletRequest request,
HttpServletResponse response)
throws IOException
GET and POST methods.request - servlet requestresponse - servlet responseIOExceptionprotected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
GET method.request - servlet requestresponse - servlet responseServletExceptionIOExceptionprotected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
POST method.request - servlet requestresponse - servlet responseServletExceptionIOExceptionpublic String getServletInfo()
Copyright © 2017 SAP SE. All Rights Reserved.