Package org.nuxeo.ecm.core.io.download
Class DownloadService.DownloadContext
java.lang.Object
org.nuxeo.ecm.core.io.download.DownloadService.DownloadContext
- Enclosing interface:
- DownloadService
Download context.
- Since:
- 11.1
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Blob
protected final DocumentModel
protected final Map<String,
Serializable> protected final String
protected final Boolean
protected final Calendar
protected final String
protected final javax.servlet.http.HttpServletRequest
protected final javax.servlet.http.HttpServletResponse
protected final String
-
Constructor Summary
ConstructorDescriptionDownloadContext
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DocumentModel doc, String xpath, Blob blob, String filename, String reason, Map<String, Serializable> extendedInfos, Boolean inline, Consumer<ByteRange> blobTransferer, Calendar lastModified) -
Method Summary
-
Field Details
-
request
protected final javax.servlet.http.HttpServletRequest request -
response
protected final javax.servlet.http.HttpServletResponse response -
doc
-
xpath
-
blob
-
filename
-
reason
-
extendedInfos
-
inline
-
blobTransferer
-
lastModified
-
-
Constructor Details
-
DownloadContext
public DownloadContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, DocumentModel doc, String xpath, Blob blob, String filename, String reason, Map<String, Serializable> extendedInfos, Boolean inline, Consumer<ByteRange> blobTransferer, Calendar lastModified)
-
-
Method Details
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest() -
getResponse
public javax.servlet.http.HttpServletResponse getResponse() -
getDocumentModel
-
getXPath
-
getBlob
-
getFilename
-
getReason
-
getExtendedInfos
-
getInline
-
getBlobTransferer
-
getLastModified
-
builder
public static DownloadService.DownloadContext.Builder builder(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Creates a new builder.- Parameters:
request
- the HTTP requestresponse
- the HTTP response- Returns:
- the new builder
-