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
ContentStream
, backed by a Blob
.Modifier and Type | Class and Description |
---|---|
static class |
NuxeoContentStream.LazyInputStream
An
InputStream that fetches the actual stream from a Supplier on first use. |
static class |
NuxeoContentStream.NuxeoRedirectingContentStream
A
NuxeoContentStream that will generate a redirect. |
Modifier and Type | Field and Description |
---|---|
protected Blob |
blob |
static String |
CONTENT_MD5_DIGEST_ALGORITHM |
static String |
CONTENT_MD5_HEADER_NAME |
static String |
DIGEST_HEADER_NAME |
static long |
LAST_MODIFIED |
protected GregorianCalendar |
lastModified |
protected InputStream |
stream |
static String |
WANT_DIGEST_HEADER_NAME |
Modifier and Type | Method and Description |
---|---|
static NuxeoContentStream |
create(DocumentModel doc,
String xpath,
Blob blob,
String reason,
Map<String,Serializable> extendedInfos,
GregorianCalendar lastModified,
javax.servlet.http.HttpServletRequest request) |
protected InputStream |
getActualStream() |
BigInteger |
getBigLength() |
String |
getCacheControl() |
String |
getETag() |
GregorianCalendar |
getExpires() |
List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> |
getExtensions() |
String |
getFileName() |
GregorianCalendar |
getLastModified() |
long |
getLength() |
String |
getMimeType() |
InputStream |
getStream() |
static boolean |
hasWantDigestRequestHeader(javax.servlet.http.HttpServletRequest request,
String digestAlgorithm) |
static boolean |
isHeadRequest(javax.servlet.http.HttpServletRequest request) |
void |
setExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions) |
public static final String CONTENT_MD5_DIGEST_ALGORITHM
public static final String CONTENT_MD5_HEADER_NAME
public static final String WANT_DIGEST_HEADER_NAME
public static final String DIGEST_HEADER_NAME
public static long LAST_MODIFIED
protected final GregorianCalendar lastModified
protected final InputStream stream
public static NuxeoContentStream create(DocumentModel doc, String xpath, Blob blob, String reason, Map<String,Serializable> extendedInfos, GregorianCalendar lastModified, javax.servlet.http.HttpServletRequest request)
public static boolean isHeadRequest(javax.servlet.http.HttpServletRequest request)
public static boolean hasWantDigestRequestHeader(javax.servlet.http.HttpServletRequest request, String digestAlgorithm)
public long getLength()
getLength
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
public BigInteger getBigLength()
getBigLength
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
public String getMimeType()
getMimeType
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
public String getFileName()
getFileName
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
public InputStream getStream()
getStream
in interface org.apache.chemistry.opencmis.commons.data.ContentStream
protected InputStream getActualStream()
public List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> getExtensions()
getExtensions
in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
public void setExtensions(List<org.apache.chemistry.opencmis.commons.data.CmisExtensionElement> extensions)
setExtensions
in interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
public String getCacheControl()
getCacheControl
in interface org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
public String getETag()
getETag
in interface org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
public GregorianCalendar getExpires()
getExpires
in interface org.apache.chemistry.opencmis.commons.data.CacheHeaderContentStream
public GregorianCalendar getLastModified()
getLastModified
in interface org.apache.chemistry.opencmis.commons.data.LastModifiedContentStream
Copyright © 2018 Nuxeo. All rights reserved.