com.bemoko.live.platform.mwc.sites
Class LiveSiteFile

java.lang.Object
  extended by java.io.File
      extended by com.bemoko.live.platform.mwc.sites.LiveSiteFile
All Implemented Interfaces:
com.bemoko.live.platform.mwc.cache.SiteScopedCacheEntry, LiveSiteResource, Serializable, Comparable<File>

public class LiveSiteFile
extends File
implements LiveSiteResource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
LiveSiteFile(URI uri)
           
 
Method Summary
 void closeInputStream()
           
 void closeInputStreamQuietly()
           
 boolean equals(Object o)
           
 String getContext()
           
 String getContextResourceUri()
           
 LiveResourceUri getLiveResourceUri()
           
 String getPlatformRelativeUri()
           
 String getSiteName()
           
 Object getSource()
           
 int hashCode()
           
 FileInputStream openInputStream()
           
protected  void setContext(String context)
           
protected  void setContextResourceUri(String siteRelativeURI)
           
protected  void setLiveResourceUri(LiveResourceUri liveResourceUri)
           
protected  void setPlatformRelativeUri(String platformRelativeURI)
           
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.bemoko.live.platform.mwc.sites.LiveSiteResource
getPath
 

Constructor Detail

LiveSiteFile

public LiveSiteFile(URI uri)
Parameters:
uri -
Method Detail

closeInputStream

public void closeInputStream()

closeInputStreamQuietly

public void closeInputStreamQuietly()

equals

public boolean equals(Object o)
Overrides:
equals in class File

getContext

public String getContext()
Returns:
the context

getContextResourceUri

public String getContextResourceUri()

getLiveResourceUri

public LiveResourceUri getLiveResourceUri()
Specified by:
getLiveResourceUri in interface LiveSiteResource

getPlatformRelativeUri

public String getPlatformRelativeUri()
Returns:
the platformRelativeURI, including the site name

getSiteName

public String getSiteName()
Specified by:
getSiteName in interface com.bemoko.live.platform.mwc.cache.SiteScopedCacheEntry
Returns:
the siteName

hashCode

public int hashCode()
Overrides:
hashCode in class File

openInputStream

public FileInputStream openInputStream()
                                throws FileNotFoundException
Throws:
FileNotFoundException

setContext

protected void setContext(String context)
Parameters:
context - the context to set

setContextResourceUri

protected void setContextResourceUri(String siteRelativeURI)

setLiveResourceUri

protected void setLiveResourceUri(LiveResourceUri liveResourceUri)

setPlatformRelativeUri

protected void setPlatformRelativeUri(String platformRelativeURI)
Parameters:
platformRelativeURI - the platformRelativeURI to set

getSource

public Object getSource()
Specified by:
getSource in interface LiveSiteResource