Class NuxeoContentStream
java.lang.Object
org.nuxeo.ecm.core.opencmis.impl.server.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
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AnInputStream
that fetches the actual stream from aSupplier
on first use.static class
ANuxeoContentStream
that will generate a redirect. -
Field Summary
Modifier and TypeFieldDescriptionprotected final Blob
static final String
Deprecated.since 11.1, now unusedstatic final String
Deprecated.since 11.1, now unusedstatic final String
static long
protected final Calendar
protected final InputStream
static final String
Deprecated.since 11.1, now unused -
Method Summary
Modifier and TypeMethodDescriptionstatic NuxeoContentStream
create
(DocumentModel doc, String xpath, Blob blob, String reason, Map<String, Serializable> extendedInfos, Calendar lastModified, javax.servlet.http.HttpServletRequest request) protected InputStream
getETag()
List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement>
long
static boolean
hasWantDigestRequestHeader
(javax.servlet.http.HttpServletRequest request, String digestAlgorithm) Deprecated.since 11.1, now unusedstatic boolean
isHeadRequest
(javax.servlet.http.HttpServletRequest request) void
setExtensions
(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions)
-
Field Details
-
CONTENT_MD5_DIGEST_ALGORITHM
Deprecated.since 11.1, now unused- See Also:
-
CONTENT_MD5_HEADER_NAME
Deprecated.since 11.1, now unused- See Also:
-
WANT_DIGEST_HEADER_NAME
Deprecated.since 11.1, now unused- See Also:
-
DIGEST_HEADER_NAME
- See Also:
-
LAST_MODIFIED
public static long LAST_MODIFIED -
blob
-
lastModified
-
stream
-
-
Method Details
-
create
public static NuxeoContentStream create(DocumentModel doc, String xpath, Blob blob, String reason, Map<String, Serializable> extendedInfos, Calendar lastModified, javax.servlet.http.HttpServletRequest request) -
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 interfaceorg.apache.chemistry.opencmis.commons.data.ContentStream
-
getBigLength
- Specified by:
getBigLength
in interfaceorg.apache.chemistry.opencmis.commons.data.ContentStream
-
getMimeType
- Specified by:
getMimeType
in interfaceorg.apache.chemistry.opencmis.commons.data.ContentStream
-
getFileName
- Specified by:
getFileName
in interfaceorg.apache.chemistry.opencmis.commons.data.ContentStream
-
getStream
- Specified by:
getStream
in interfaceorg.apache.chemistry.opencmis.commons.data.ContentStream
-
getActualStream
-
getExtensions
- Specified by:
getExtensions
in interfaceorg.apache.chemistry.opencmis.commons.data.ExtensionsData
-
setExtensions
public void setExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions) - Specified by:
setExtensions
in interfaceorg.apache.chemistry.opencmis.commons.data.ExtensionsData
-
getCacheControl
- Specified by:
getCacheControl
in interfaceorg.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
-
getETag
- Specified by:
getETag
in interfaceorg.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
-
getExpires
- Specified by:
getExpires
in interfaceorg.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
-
getLastModified
- Specified by:
getLastModified
in interfaceorg.apache.chemistry.opencmis.commons.data.LastModifiedContentStream
-