org.apache.cocoon.components.source.impl
Class TraversableContextSource
java.lang.Object
org.apache.cocoon.components.source.impl.TraversableContextSource
- All Implemented Interfaces:
- Source, TraversableSource
- public class TraversableContextSource
- extends Object
- implements Source, TraversableSource
- Version:
- SVN $Id: TraversableContextSource.java 160568 2005-04-08 17:33:05Z sylvain $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wrappedSource
protected final Source wrappedSource
children
protected final Set children
factory
protected final ContextSourceFactory factory
path
protected final String path
scheme
protected final String scheme
TraversableContextSource
public TraversableContextSource(Source source,
Set children,
ContextSourceFactory factory,
String path,
String scheme)
exists
public boolean exists()
- Specified by:
exists
in interface Source
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface Source
getInputStream
public InputStream getInputStream()
throws IOException,
SourceNotFoundException
- Specified by:
getInputStream
in interface Source
- Throws:
IOException
SourceNotFoundException
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface Source
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interface Source
getScheme
public String getScheme()
- Specified by:
getScheme
in interface Source
getURI
public String getURI()
- Specified by:
getURI
in interface Source
getValidity
public SourceValidity getValidity()
- Specified by:
getValidity
in interface Source
refresh
public void refresh()
- Specified by:
refresh
in interface Source
getChild
public Source getChild(String name)
throws SourceException
- Specified by:
getChild
in interface TraversableSource
- Throws:
SourceException
getChildren
public Collection getChildren()
throws SourceException
- Specified by:
getChildren
in interface TraversableSource
- Throws:
SourceException
getName
public String getName()
- Specified by:
getName
in interface TraversableSource
getParent
public Source getParent()
throws SourceException
- Specified by:
getParent
in interface TraversableSource
- Throws:
SourceException
isCollection
public boolean isCollection()
- Specified by:
isCollection
in interface TraversableSource
Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.