com.fatwire.gst.foundation.facade.uri
Class BlobUriBuilder

java.lang.Object
  extended by com.fatwire.gst.foundation.facade.uri.BlobUriBuilder

public class BlobUriBuilder
extends Object

Builder support for blob urls.

 new BlobUriBuilder(blob).mimeType("image/jpeg").parent("12345").toURI(ics);
 

Since:
Feb 15, 2011
Author:
Dolf Dijkstra

Constructor Summary
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.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobUriBuilder

public BlobUriBuilder(com.fatwire.assetapi.data.AssetData data,
                      String attributeName)
Constructor that accepts AssetData and an attribute name.

Parameters:
data - the asset.
attributeName - the name of the attribute containing the blob.

BlobUriBuilder

public BlobUriBuilder(com.fatwire.assetapi.data.BlobObject blob)
Constructor accepting a BlobObject.

Parameters:
blob -

BlobUriBuilder

public BlobUriBuilder(com.fatwire.assetapi.data.BlobObject.BlobAddress address)
Constructor accepting a BlobAddress.

Parameters:
address -
Method Detail

toURI

public String toURI(COM.FutureTense.Interfaces.ICS ics)
Parameters:
ics -
Returns:
the URI

assembler

public BlobUriBuilder assembler(String s)
Parameters:
s -
Returns:
this
See Also:
GetBlobUrl.setAssembler(java.lang.String)

fragment

public BlobUriBuilder fragment(String s)
Parameters:
s -
Returns:
this
See Also:
GetBlobUrl.setFragment(java.lang.String)

mimeType

public BlobUriBuilder mimeType(String s)
Parameters:
s -
Returns:
this
See Also:
GetBlobUrl.setBobHeader(java.lang.String)

blobNoCache

public BlobUriBuilder blobNoCache(String s)
Parameters:
s -
Returns:
this
See Also:
GetBlobUrl.setBlobNoCache(java.lang.String)

header

public BlobUriBuilder header(String name,
                             String value)
Parameters:
name -
value -
Returns:
this
See Also:
GetBlobUrl.setBlobHeaderName(int, java.lang.String)

maxAge

public BlobUriBuilder maxAge(int value)
Sets the Cache-Control: max-age http response header for this blob.

Parameters:
value - the max-age value as per http specification.
Returns:
this
See Also:
GetBlobUrl.setBlobHeaderName(int, java.lang.String)

parent

public BlobUriBuilder parent(String s)
Parameters:
s -
Returns:
this
See Also:
GetBlobUrl.setParentId(java.lang.String)

parent

public BlobUriBuilder parent(com.fatwire.assetapi.data.AssetId assetId)
Parameters:
assetId -
Returns:
this
See Also:
GetBlobUrl.setParentId(java.lang.String)


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.