railo.commons.io.res.type.s3
Class Content

java.lang.Object
  extended by railo.commons.io.res.type.s3.Content
All Implemented Interfaces:
S3Info

public final class Content
extends Object
implements S3Info


Constructor Summary
Content(S3 s3)
           
 
Method Summary
 boolean exists()
           
 String getBucketName()
           
 String getETag()
           
 InputStream getInputStream()
           
 String getKey()
           
 long getLastModified()
           
 String getLink(int secondsValid)
           
 String getOwnerDisplayName()
           
 String getOwnerIdKey()
           
 long getSize()
           
 String getStorageClass()
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isTruncated()
           
 void setBucketName(String bucketName)
           
 void setETag(String tag)
           
 void setKey(String key)
           
 void setLastModified(long lastModified)
           
 void setOwnerDisplayName(String ownerDisplayName)
           
 void setOwnerIdKey(String ownerIdKey)
           
 void setSize(long size)
           
 void setStorageClass(String storageClass)
           
 void setTruncated(boolean truncated)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Content

public Content(S3 s3)
Method Detail

isTruncated

public boolean isTruncated()
Returns:
the truncated

getBucketName

public String getBucketName()
Returns:
the bucketName

setBucketName

public void setBucketName(String bucketName)
Parameters:
bucketName - the bucketName to set

getKey

public String getKey()
Returns:
the key

setKey

public void setKey(String key)
Parameters:
key - the key to set

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface S3Info
Returns:
the lastModified

setLastModified

public void setLastModified(long lastModified)
Parameters:
lastModified - the lastModified to set

getETag

public String getETag()
Returns:
the eTag

setETag

public void setETag(String tag)
Parameters:
tag - the eTag to set

getSize

public long getSize()
Specified by:
getSize in interface S3Info
Returns:
the size

setSize

public void setSize(long size)
Parameters:
size - the size to set

getStorageClass

public String getStorageClass()
Returns:
the storageClass

setStorageClass

public void setStorageClass(String storageClass)
Parameters:
storageClass - the storageClass to set

getOwnerIdKey

public String getOwnerIdKey()
Returns:
the ownerIdKey

setOwnerIdKey

public void setOwnerIdKey(String ownerIdKey)
Parameters:
ownerIdKey - the ownerIdKey to set

getOwnerDisplayName

public String getOwnerDisplayName()
Returns:
the ownerDisplayName

setOwnerDisplayName

public void setOwnerDisplayName(String ownerDisplayName)
Parameters:
ownerDisplayName - the ownerDisplayName to set

getLink

public String getLink(int secondsValid)
               throws InvalidKeyException,
                      NoSuchAlgorithmException,
                      IOException
Throws:
InvalidKeyException
NoSuchAlgorithmException
IOException

getInputStream

public InputStream getInputStream()
                           throws InvalidKeyException,
                                  NoSuchAlgorithmException,
                                  IOException,
                                  SAXException
Throws:
InvalidKeyException
NoSuchAlgorithmException
IOException
SAXException

toString

public String toString()
Overrides:
toString in class Object

exists

public boolean exists()
Specified by:
exists in interface S3Info

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in interface S3Info

isFile

public boolean isFile()
Specified by:
isFile in interface S3Info

setTruncated

public void setTruncated(boolean truncated)
Parameters:
truncated - the truncated to set


Copyright © 2012 Railo