org.apache.cocoon.components.source
Class CocoonSourceFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.source.CocoonSourceFactory
All Implemented Interfaces:
LogEnabled, ThreadSafe, SourceFactory

public final class CocoonSourceFactory
extends AbstractLogEnabled
implements SourceFactory

This class implements the cocoon: protocol. It cannot be configured like the other source factories as it needs the current Sitemap as input.

Version:
CVS $Id: CocoonSourceFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Constructor Summary
CocoonSourceFactory(Processor processor, ComponentManager manager)
           
 
Method Summary
 Source getSource(Environment environment, String location)
          Resolve the source
 Source getSource(Environment environment, URL base, String location)
          Resolve the source
 
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

CocoonSourceFactory

public CocoonSourceFactory(Processor processor,
                           ComponentManager manager)
Method Detail

getSource

public Source getSource(Environment environment,
                        String location)
                 throws ProcessingException,
                        IOException,
                        MalformedURLException
Resolve the source

Specified by:
getSource in interface SourceFactory
Parameters:
environment - This is optional.
Throws:
ProcessingException
IOException
MalformedURLException

getSource

public Source getSource(Environment environment,
                        URL base,
                        String location)
                 throws ProcessingException,
                        IOException,
                        MalformedURLException
Resolve the source

Specified by:
getSource in interface SourceFactory
Parameters:
environment - This is optional.
Throws:
ProcessingException
IOException
MalformedURLException


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