org.apache.cocoon.components.source.impl
Class TraversableContextSource

java.lang.Object
  extended byorg.apache.cocoon.components.source.impl.TraversableContextSource
All Implemented Interfaces:
Source, TraversableSource

public class TraversableContextSource
extends Object
implements Source, TraversableSource

Version:
SVN $Id: TraversableContextSource.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
protected  Set children
           
protected  ContextSourceFactory factory
           
protected  String path
           
protected  String scheme
           
protected  Source wrappedSource
           
 
Constructor Summary
TraversableContextSource(Source source, Set children, ContextSourceFactory factory, String path, String scheme)
           
 
Method Summary
 boolean exists()
           
 Source getChild(String name)
           
 Collection getChildren()
           
 long getContentLength()
           
 InputStream getInputStream()
           
 long getLastModified()
           
 String getMimeType()
           
 String getName()
           
 Source getParent()
           
 String getScheme()
           
 String getURI()
           
 SourceValidity getValidity()
           
 boolean isCollection()
           
 void refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TraversableContextSource

public TraversableContextSource(Source source,
                                Set children,
                                ContextSourceFactory factory,
                                String path,
                                String scheme)
Method Detail

exists

public boolean exists()
Specified by:
exists in interface Source
See Also:
Source.exists()

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface Source
See Also:
Source.getContentLength()

getInputStream

public InputStream getInputStream()
                           throws IOException,
                                  SourceNotFoundException
Specified by:
getInputStream in interface Source
Throws:
IOException
SourceNotFoundException
See Also:
Source.getInputStream()

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface Source
See Also:
Source.getLastModified()

getMimeType

public String getMimeType()
Specified by:
getMimeType in interface Source
See Also:
Source.getMimeType()

getScheme

public String getScheme()
Specified by:
getScheme in interface Source
See Also:
Source.getScheme()

getURI

public String getURI()
Specified by:
getURI in interface Source
See Also:
Source.getURI()

getValidity

public SourceValidity getValidity()
Specified by:
getValidity in interface Source
See Also:
Source.getValidity()

refresh

public void refresh()
Specified by:
refresh in interface Source
See Also:
Source.refresh()

getChild

public Source getChild(String name)
                throws SourceException
Specified by:
getChild in interface TraversableSource
Throws:
SourceException
See Also:
TraversableSource.getChild(java.lang.String)

getChildren

public Collection getChildren()
                       throws SourceException
Specified by:
getChildren in interface TraversableSource
Throws:
SourceException
See Also:
TraversableSource.getChildren()

getName

public String getName()
Specified by:
getName in interface TraversableSource
See Also:
TraversableSource.getName()

getParent

public Source getParent()
                 throws SourceException
Specified by:
getParent in interface TraversableSource
Throws:
SourceException
See Also:
TraversableSource.getParent()

isCollection

public boolean isCollection()
Specified by:
isCollection in interface TraversableSource
See Also:
TraversableSource.isCollection()


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.