org.apache.jetspeed.contentserver
Class AbstractContentLocator

java.lang.Object
  extended byorg.apache.jetspeed.contentserver.AbstractContentLocator
All Implemented Interfaces:
ContentLocator
Direct Known Subclasses:
SimpleContentLocator

public abstract class AbstractContentLocator
extends Object
implements ContentLocator

AbstractContentLocator

Version:
$Id: AbstractContentLocator.java 233055 2005-08-16 20:56:54Z weaver $
Author:
Scott T. Weaver

Field Summary
private  String basePath
           
protected  File contentFile
           
protected  String contextRoot
           
protected static Map fileCache
           
protected static org.apache.commons.logging.Log log
           
protected  List lookupPathes
           
protected  String rootPath
           
protected  String URI
           
protected  String[] URLHints
           
protected  boolean useCachedLookup
           
 
Constructor Summary
AbstractContentLocator(String rootPath, String[] URLHints, boolean useCachedLookup, String contextRoot, String URI, List lookupPathes)
           
 
Method Summary
 String getBasePath()
           
 InputStream getInputStream()
           getInputStream
 Date getLastModified()
           
 OutputStream getOutputStream()
           
 long writeToOutputStream(OutputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.contentserver.ContentLocator
getRealPath
 

Field Detail

rootPath

protected String rootPath

useCachedLookup

protected boolean useCachedLookup

fileCache

protected static final Map fileCache

URLHints

protected String[] URLHints

log

protected static final org.apache.commons.logging.Log log

contextRoot

protected String contextRoot

URI

protected String URI

lookupPathes

protected List lookupPathes

basePath

private String basePath

contentFile

protected File contentFile
Constructor Detail

AbstractContentLocator

public AbstractContentLocator(String rootPath,
                              String[] URLHints,
                              boolean useCachedLookup,
                              String contextRoot,
                              String URI,
                              List lookupPathes)
                       throws FileNotFoundException
Method Detail

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface ContentLocator
Throws:
IOException

writeToOutputStream

public long writeToOutputStream(OutputStream stream)
                         throws IOException
Specified by:
writeToOutputStream in interface ContentLocator
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException

getInputStream

Specified by:
getInputStream in interface ContentLocator
Returns:
Throws:
IOException
FileNotFoundException - if the content cannot be found
See Also:
org.apache.jetspeed.contentserver.ContentLocator#getInputStream(java.lang.String, java.util.List)

getBasePath

public String getBasePath()
Specified by:
getBasePath in interface ContentLocator

getLastModified

public Date getLastModified()
Specified by:
getLastModified in interface ContentLocator


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.