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
  • Field Details

    • 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
    • blobTransferer

      protected final Consumer<ByteRange> blobTransferer
    • lastModified

      protected final Calendar lastModified
  • Constructor Details

  • Method Details

    • 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()
    • getBlobTransferer

      public Consumer<ByteRange> getBlobTransferer()
    • 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 request
      response - the HTTP response
      Returns:
      the new builder