public class BlobUriBuilder extends Object
new BlobUriBuilder(blob).mimeType("image/jpeg").parent("12345").toURI(ics);
| Constructor and Description |
|---|
BlobUriBuilder(com.fatwire.assetapi.data.AssetData data,
String attributeName)
Constructor that accepts AssetData and an attribute name.
|
BlobUriBuilder(com.fatwire.assetapi.data.BlobObject.BlobAddress address)
Constructor accepting a BlobAddress.
|
BlobUriBuilder(com.fatwire.assetapi.data.BlobObject blob)
Constructor accepting a BlobObject.
|
| Modifier and Type | Method and Description |
|---|---|
BlobUriBuilder |
assembler(String s) |
BlobUriBuilder |
blobNoCache(String s) |
BlobUriBuilder |
fragment(String s) |
BlobUriBuilder |
header(String name,
String value) |
BlobUriBuilder |
maxAge(int value)
Sets the Cache-Control: max-age http response header for this blob.
|
BlobUriBuilder |
mimeType(String s) |
BlobUriBuilder |
parent(com.fatwire.assetapi.data.AssetId assetId) |
BlobUriBuilder |
parent(String s) |
String |
toURI(COM.FutureTense.Interfaces.ICS ics) |
public BlobUriBuilder(com.fatwire.assetapi.data.AssetData data,
String attributeName)
data - the asset.attributeName - the name of the attribute containing the blob.public BlobUriBuilder(com.fatwire.assetapi.data.BlobObject blob)
blob - blobpublic BlobUriBuilder(com.fatwire.assetapi.data.BlobObject.BlobAddress address)
address - blob addresspublic String toURI(COM.FutureTense.Interfaces.ICS ics)
ics - Content Server context objectpublic BlobUriBuilder assembler(String s)
s - string value for assemblerpublic BlobUriBuilder fragment(String s)
s - string value for fragmentpublic BlobUriBuilder mimeType(String s)
s - string value for bob headerpublic BlobUriBuilder blobNoCache(String s)
s - string value for blob no cachepublic BlobUriBuilder header(String name, String value)
name - blob header namevalue - blob header valuepublic BlobUriBuilder maxAge(int value)
value - the max-age value as per http specification.public BlobUriBuilder parent(String s)
s - string value for parent idpublic BlobUriBuilder parent(com.fatwire.assetapi.data.AssetId assetId)
assetId - asset id objectCopyright © 2016–2017. All rights reserved.