Class NuxeoContentStream

  • All Implemented Interfaces:
    org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream, org.apache.chemistry.opencmis.commons.data.ContentLengthContentStream, org.apache.chemistry.opencmis.commons.data.ContentStream, org.apache.chemistry.opencmis.commons.data.ExtensionsData, org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream
    Direct Known Subclasses:
    NuxeoContentStream.NuxeoRedirectingContentStream

    public class NuxeoContentStream
    extends Object
    implements org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream, org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream, org.apache.chemistry.opencmis.commons.data.ContentLengthContentStream
    Nuxeo implementation of a CMIS ContentStream, backed by a Blob.
    • Method Detail

      • isHeadRequest

        public static boolean isHeadRequest​(javax.servlet.http.HttpServletRequest request)
      • hasWantDigestRequestHeader

        @Deprecated
        public static boolean hasWantDigestRequestHeader​(javax.servlet.http.HttpServletRequest request,
                                                         String digestAlgorithm)
        Deprecated.
        since 11.1, now unused
      • getLength

        public long getLength()
        Specified by:
        getLength in interface org.apache.chemistry.opencmis.commons.data.ContentStream
      • getBigLength

        public BigInteger getBigLength()
        Specified by:
        getBigLength in interface org.apache.chemistry.opencmis.commons.data.ContentStream
      • getMimeType

        public String getMimeType()
        Specified by:
        getMimeType in interface org.apache.chemistry.opencmis.commons.data.ContentStream
      • getFileName

        public String getFileName()
        Specified by:
        getFileName in interface org.apache.chemistry.opencmis.commons.data.ContentStream
      • getStream

        public InputStream getStream()
        Specified by:
        getStream in interface org.apache.chemistry.opencmis.commons.data.ContentStream
      • getActualStream

        protected InputStream getActualStream()
      • getExtensions

        public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getExtensions()
        Specified by:
        getExtensions in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
      • setExtensions

        public void setExtensions​(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions)
        Specified by:
        setExtensions in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
      • getCacheControl

        public String getCacheControl()
        Specified by:
        getCacheControl in interface org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
      • getETag

        public String getETag()
        Specified by:
        getETag in interface org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
      • getExpires

        public GregorianCalendar getExpires()
        Specified by:
        getExpires in interface org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
      • getLastModified

        public GregorianCalendar getLastModified()
        Specified by:
        getLastModified in interface org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream