org.apache.jetspeed.contentserver
Class AbstractContentLocator
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractContentLocator
public AbstractContentLocator(String rootPath,
String[] URLHints,
boolean useCachedLookup,
String contextRoot,
String URI,
List lookupPathes)
throws FileNotFoundException
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.