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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.cocoon.source.SiteSource
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.excalibur.source.Source

public class SiteSource
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.excalibur.source.Source

Source for the site:/ protocol.


Constructor Summary
SiteSource(org.apache.avalon.framework.service.ServiceManager manager, org.apache.cocoon.environment.Request request, java.lang.String location, org.apache.avalon.framework.logger.Logger logger)
           
 
Method Summary
 boolean exists()
           
 long getContentLength()
           
protected  org.apache.excalibur.source.Source getFormatSource(Document doc, java.lang.String format)
           
 java.io.InputStream getInputStream()
           
 long getLastModified()
           
 java.lang.String getMimeType()
           
 java.lang.String getScheme()
           
 java.lang.String getURI()
           
 org.apache.excalibur.source.SourceValidity getValidity()
           
 void refresh()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteSource

public SiteSource(org.apache.avalon.framework.service.ServiceManager manager,
                  org.apache.cocoon.environment.Request request,
                  java.lang.String location,
                  org.apache.avalon.framework.logger.Logger logger)
Parameters:
manager - The service manager.
request - The cocoon request.
location - The source URI.
logger - The logger.
Method Detail

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

getFormatSource

protected org.apache.excalibur.source.Source getFormatSource(Document doc,
                                                             java.lang.String format)
                                                      throws DocumentException,
                                                             org.apache.avalon.framework.service.ServiceException,
                                                             java.net.MalformedURLException,
                                                             java.io.IOException
Throws:
DocumentException
org.apache.avalon.framework.service.ServiceException
java.net.MalformedURLException
java.io.IOException


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