com.ibm.ram.client
Class RAMURLArtifact

java.lang.Object
  extended by com.ibm.ram.common.data.Artifact
      extended by com.ibm.ram.common.data.URLArtifact
          extended by com.ibm.ram.client.RAMURLArtifact

public class RAMURLArtifact
extends URLArtifact

Represents an artifact that is a URL

Since:
7.1
Author:
kbauer

Field Summary
 
Fields inherited from class com.ibm.ram.common.data.Artifact
FILE_DELIM, TYPE_FILE, TYPE_FOLDER, TYPE_URL
 
Constructor Summary
RAMURLArtifact(java.lang.String URL)
          Constructor
 
Method Summary
 RAMAsset getAsset()
           
 java.io.InputStream getCachedContent()
          If a URL artifact has cached content and you are authorized to download it an InputStream is returned to the content of the URL cache.
 long getCreationDate()
           
 java.lang.String getLabel()
          Returns the Label associated with the artifact
 java.lang.String getName()
          The name of the artifact
 java.lang.String getPath()
          Returns the path to the artifact from the root.
 ArtifactReference getReference()
           
 long getSize()
          The size of the artifact.
 java.lang.String getType()
          The type of the artifact.
 java.lang.String getURL()
           
 boolean hasCachedContent()
          Returns true if an URL artifact has cached content and you are authorized to download it
 void setAsset(RAMAsset asset)
           
 void setCreationDate(long creationDate)
          The date the artifact was cerated.
 void setLabel(java.lang.String label)
          Sets the label associated with the artifact
 void setName(java.lang.String name)
          The name of the artifact.
 void setPath(java.lang.String path)
          The path to the artifact.
 void setReference(ArtifactReference reference)
           
 void setSize(long size)
          The size of the artifact.
 void setType(java.lang.String type)
          The artifact type.
 void setURL(java.lang.String url)
           
 
Methods inherited from class com.ibm.ram.common.data.Artifact
getChecksum, getMimeType, setChecksum, setMimeType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RAMURLArtifact

public RAMURLArtifact(java.lang.String URL)
Constructor

Parameters:
URL -
Since:
7.1
Method Detail

getName

public java.lang.String getName()
Description copied from class: Artifact
The name of the artifact

Overrides:
getName in class Artifact

setName

public void setName(java.lang.String name)
Description copied from class: Artifact
The name of the artifact.

Overrides:
setName in class Artifact

getURL

public java.lang.String getURL()
Overrides:
getURL in class URLArtifact
Returns:
The URL value.

getPath

public java.lang.String getPath()
Description copied from class: Artifact
Returns the path to the artifact from the root. Path of the root artifact is null. All other path are relative to the artifact root.

Overrides:
getPath in class Artifact

setPath

public void setPath(java.lang.String path)
Description copied from class: Artifact
The path to the artifact. Path of the root artifact is null. All other path are relative to the artifact root.

Overrides:
setPath in class Artifact

setURL

public void setURL(java.lang.String url)
Overrides:
setURL in class URLArtifact
Parameters:
url - The URL value.

getAsset

public RAMAsset getAsset()

setAsset

public void setAsset(RAMAsset asset)

getCreationDate

public long getCreationDate()
Overrides:
getCreationDate in class Artifact
Returns:
Returns the creationDate.

getType

public java.lang.String getType()
Description copied from class: Artifact
The type of the artifact.

Overrides:
getType in class Artifact
See Also:
Artifact.TYPE_FILE, Artifact.TYPE_FOLDER, Artifact.TYPE_URL

getCachedContent

public java.io.InputStream getCachedContent()
If a URL artifact has cached content and you are authorized to download it an InputStream is returned to the content of the URL cache.

Since:
7.1.1
See Also:
hasCachedContent()

hasCachedContent

public boolean hasCachedContent()
Returns true if an URL artifact has cached content and you are authorized to download it

Since:
7.1.1
See Also:
getCachedContent()

getSize

public long getSize()
Description copied from class: Artifact
The size of the artifact.

Overrides:
getSize in class Artifact

getLabel

public java.lang.String getLabel()
Returns the Label associated with the artifact

Overrides:
getLabel in class Artifact
Returns:
Returns the label.
Since:
7.1

setLabel

public void setLabel(java.lang.String label)
Sets the label associated with the artifact

Overrides:
setLabel in class Artifact
Parameters:
label -
Since:
7.1

getReference

public ArtifactReference getReference()
Overrides:
getReference in class Artifact
Returns:
Returns the reference.

setCreationDate

public void setCreationDate(long creationDate)
Description copied from class: Artifact
The date the artifact was cerated.

Overrides:
setCreationDate in class Artifact

setReference

public void setReference(ArtifactReference reference)
Overrides:
setReference in class Artifact
Parameters:
reference - The reference to set.

setSize

public void setSize(long size)
Description copied from class: Artifact
The size of the artifact.

Overrides:
setSize in class Artifact

setType

public void setType(java.lang.String type)
Description copied from class: Artifact
The artifact type.

Overrides:
setType in class Artifact
See Also:
Artifact.TYPE_FILE, Artifact.TYPE_FOLDER, Artifact.TYPE_URL