public interface BlobManager
Blobs, through internally-registered BlobProviders.| Modifier and Type | Interface and Description |
|---|---|
static class |
BlobManager.UsageHint
Hints for returning
URIs appropriate for the expected usage. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,URI> |
getAvailableConversions(Blob blob,
BlobManager.UsageHint hint)
Gets a map of available MIME type conversions and corresponding
URI for a blob. |
BlobProvider |
getBlobProvider(Blob blob)
Gets the blob provider for the given blob.
|
BlobProvider |
getBlobProvider(String id)
Gets the blob provider with the given id.
|
Map<String,BlobProvider> |
getBlobProviders()
Get the map of blob providers
|
BlobProvider |
getBlobProviderWithNamespace(String id)
Gets the blob provider with the given id, or, if none has been registered, a namespaced version of the default
blob provider.
|
InputStream |
getStream(Blob blob)
INTERNAL - Gets an
InputStream for the data of a managed blob. |
InputStream |
getThumbnail(Blob blob)
Gets an
InputStream for a thumbnail of a blob. |
URI |
getURI(Blob blob,
BlobManager.UsageHint hint,
javax.servlet.http.HttpServletRequest servletRequest)
Gets an
URI for the content of a blob. |
BlobProvider getBlobProvider(String id)
id - the blob provider idBlobProvider getBlobProviderWithNamespace(String id)
id - the blob provider id or namespaceBlobProvider getBlobProvider(Blob blob)
InputStream getStream(Blob blob) throws IOException
InputStream for the data of a managed blob. Used by internal implementations, regular
callers should call Blob.getStream().blob - the blobIOExceptionInputStream getThumbnail(Blob blob) throws IOException
InputStream for a thumbnail of a blob.
Like all InputStream, the result must be closed when done with it to avoid resource leaks.
blob - the blobIOExceptionURI getURI(Blob blob, BlobManager.UsageHint hint, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
URI for the content of a blob.blob - the blobhint - BlobManager.UsageHintservletRequest - the servlet request, or nullURI, or null if none availableIOExceptionMap<String,URI> getAvailableConversions(Blob blob, BlobManager.UsageHint hint) throws IOException
URI for a blob.URI, which may be emptyIOExceptionMap<String,BlobProvider> getBlobProviders()
Copyright © 2019 Nuxeo. All rights reserved.