org.apache.lenya.cms.cocoon.source
Class AggregatingSource

java.lang.Object
  extended by org.apache.lenya.cms.cocoon.source.AggregatingSource
All Implemented Interfaces:
org.apache.excalibur.source.Source

public class AggregatingSource
extends java.lang.Object
implements org.apache.excalibur.source.Source


Constructor Summary
AggregatingSource(java.lang.String uri, java.lang.String[] uris, org.apache.avalon.framework.service.ServiceManager manager)
           
 
Method Summary
 boolean exists()
           
 long getContentLength()
           
protected  byte[] getData()
           
protected  org.w3c.dom.Document getDom()
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 java.lang.String getMimeType()
           
 java.lang.String getScheme()
           
 java.lang.String getURI()
           
 org.apache.excalibur.source.SourceValidity getValidity()
           
protected  void loadDom()
           
 void refresh()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AggregatingSource

public AggregatingSource(java.lang.String uri,
                         java.lang.String[] uris,
                         org.apache.avalon.framework.service.ServiceManager manager)
Parameters:
uri -
uris -
manager -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

loadDom

protected void loadDom()

getDom

protected org.w3c.dom.Document getDom()

getData

protected byte[] getData()

exists

public boolean exists()
Specified by:
exists in interface org.apache.excalibur.source.Source

getContentLength

public long getContentLength()
Specified by:
getContentLength in interface org.apache.excalibur.source.Source

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException,
                                          org.apache.excalibur.source.SourceNotFoundException
Specified by:
getInputStream in interface org.apache.excalibur.source.Source
Throws:
java.io.IOException
org.apache.excalibur.source.SourceNotFoundException

getLastModified

public long getLastModified()
Specified by:
getLastModified in interface org.apache.excalibur.source.Source

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface org.apache.excalibur.source.Source

getScheme

public java.lang.String getScheme()
Specified by:
getScheme in interface org.apache.excalibur.source.Source

getURI

public java.lang.String getURI()
Specified by:
getURI in interface org.apache.excalibur.source.Source

getValidity

public org.apache.excalibur.source.SourceValidity getValidity()
Specified by:
getValidity in interface org.apache.excalibur.source.Source

refresh

public void refresh()
Specified by:
refresh in interface org.apache.excalibur.source.Source


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.