Package org.nuxeo.ecm.core.io.download
Class DownloadService.DownloadContext
- java.lang.Object
-
- org.nuxeo.ecm.core.io.download.DownloadService.DownloadContext
-
- Enclosing interface:
- DownloadService
public static class DownloadService.DownloadContext extends Object
Download context.- Since:
- 11.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DownloadService.DownloadContext.Builder
Builder for aDownloadService.DownloadContext
.
-
Field Summary
Fields Modifier and Type Field Description protected Blob
blob
protected Consumer<ByteRange>
blobTransferer
protected DocumentModel
doc
protected Map<String,Serializable>
extendedInfos
protected String
filename
protected Boolean
inline
protected Calendar
lastModified
protected String
reason
protected javax.servlet.http.HttpServletRequest
request
protected javax.servlet.http.HttpServletResponse
response
protected String
xpath
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DownloadService.DownloadContext.Builder
builder(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Creates a new builder.Blob
getBlob()
Consumer<ByteRange>
getBlobTransferer()
DocumentModel
getDocumentModel()
Map<String,Serializable>
getExtendedInfos()
String
getFilename()
Boolean
getInline()
Calendar
getLastModified()
String
getReason()
javax.servlet.http.HttpServletRequest
getRequest()
javax.servlet.http.HttpServletResponse
getResponse()
String
getXPath()
-
-
-
Field Detail
-
request
protected final javax.servlet.http.HttpServletRequest request
-
response
protected final javax.servlet.http.HttpServletResponse response
-
doc
protected final DocumentModel doc
-
xpath
protected final String xpath
-
blob
protected final Blob blob
-
filename
protected final String filename
-
reason
protected final String reason
-
extendedInfos
protected final Map<String,Serializable> extendedInfos
-
inline
protected final Boolean inline
-
lastModified
protected final Calendar lastModified
-
-
Constructor Detail
-
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 Detail
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
-
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
-
getDocumentModel
public DocumentModel getDocumentModel()
-
getXPath
public String getXPath()
-
getBlob
public Blob getBlob()
-
getFilename
public String getFilename()
-
getReason
public String getReason()
-
getExtendedInfos
public Map<String,Serializable> getExtendedInfos()
-
getInline
public Boolean getInline()
-
getLastModified
public Calendar 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
-
-