org.xiruss.xirussrepository.server.jetty.viewer
Class BranchHtmlResource

java.lang.Object
  extended by org.mortbay.util.Resource
      extended by org.xiruss.xirussrepository.server.jetty.viewer.XirussResourceBase
          extended by org.xiruss.xirussrepository.server.jetty.viewer.XirussHtmlResource
              extended by org.xiruss.xirussrepository.server.jetty.viewer.BranchHtmlResource
All Implemented Interfaces:
java.io.Serializable

public class BranchHtmlResource
extends XirussHtmlResource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xiruss.xirussrepository.server.jetty.viewer.XirussHtmlResource
logger
 
Fields inherited from class org.xiruss.xirussrepository.server.jetty.viewer.XirussResourceBase
_associate, _context, mimeType, pathTokens, pathToMe, rep, repositoryObject, request, resourceType, url
 
Constructor Summary
BranchHtmlResource(XirussRepository rep, org.mortbay.http.HttpRequest request, Branch branch)
           
 
Method Summary
 java.lang.String getListHTML(java.lang.String base, boolean parent)
          Get the resource list as a HTML directory listing.
 boolean isDirectory()
           
 
Methods inherited from class org.xiruss.xirussrepository.server.jetty.viewer.XirussHtmlResource
addObjectList, getInputStream, getListHTML, length
 
Methods inherited from class org.xiruss.xirussrepository.server.jetty.viewer.XirussResourceBase
addPath, delete, exists, getAssociate, getCharacterEncoding, getFile, getHttpContext, getMimeType, getName, getOutputStream, getPathToMe, getRepositoryObject, getResourceType, getURL, lastModified, list, release, renameTo, setAssociate, writeTo
 
Methods inherited from class org.mortbay.util.Resource
cache, encode, finalize, getAlias, newResource, newResource, newSystemResource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchHtmlResource

public BranchHtmlResource(XirussRepository rep,
                          org.mortbay.http.HttpRequest request,
                          Branch branch)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getListHTML

public java.lang.String getListHTML(java.lang.String base,
                                    boolean parent)
                             throws java.io.IOException
Get the resource list as a HTML directory listing.

Overrides:
getListHTML in class org.mortbay.util.Resource
Parameters:
base - The base URL
parent - True if the parent directory should be included
Returns:
String of HTML
Throws:
SnapCMException
java.io.IOException

isDirectory

public boolean isDirectory()
Overrides:
isDirectory in class XirussHtmlResource