|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.Artifact
com.ibm.ram.common.data.URLArtifact
com.ibm.ram.client.RAMURLArtifact
public class RAMURLArtifact
Represents an artifact that is a URL
| 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 |
|---|
public RAMURLArtifact(java.lang.String URL)
URL - | Method Detail |
|---|
public java.lang.String getName()
Artifact
getName in class Artifactpublic void setName(java.lang.String name)
Artifact
setName in class Artifactpublic java.lang.String getURL()
getURL in class URLArtifactpublic java.lang.String getPath()
Artifact
getPath in class Artifactpublic void setPath(java.lang.String path)
Artifact
setPath in class Artifactpublic void setURL(java.lang.String url)
setURL in class URLArtifacturl - The URL value.public RAMAsset getAsset()
public void setAsset(RAMAsset asset)
public long getCreationDate()
getCreationDate in class Artifactpublic java.lang.String getType()
Artifact
getType in class ArtifactArtifact.TYPE_FILE,
Artifact.TYPE_FOLDER,
Artifact.TYPE_URLpublic java.io.InputStream getCachedContent()
hasCachedContent()public boolean hasCachedContent()
getCachedContent()public long getSize()
Artifact
getSize in class Artifactpublic java.lang.String getLabel()
getLabel in class Artifactpublic void setLabel(java.lang.String label)
setLabel in class Artifactlabel - public ArtifactReference getReference()
getReference in class Artifactpublic void setCreationDate(long creationDate)
Artifact
setCreationDate in class Artifactpublic void setReference(ArtifactReference reference)
setReference in class Artifactreference - The reference to set.public void setSize(long size)
Artifact
setSize in class Artifactpublic void setType(java.lang.String type)
Artifact
setType in class ArtifactArtifact.TYPE_FILE,
Artifact.TYPE_FOLDER,
Artifact.TYPE_URL
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||