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

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

public final class SitemapSourceFactory
extends AbstractLogEnabled
implements SourceFactory, ThreadSafe, Composable, URIAbsolutizer

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

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

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
SitemapSourceFactory()
           
 
Method Summary
 String absolutize(String baseURI, String location)
           
 void compose(ComponentManager manager)
          Composable
 Source getSource(String location, Map parameters)
          Get a Source object.
 void release(Source source)
          Release a Source object.
 
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

SitemapSourceFactory

public SitemapSourceFactory()
Method Detail

compose

public void compose(ComponentManager manager)
Composable

Specified by:
compose in interface Composable

getSource

public Source getSource(String location,
                        Map parameters)
                 throws MalformedURLException,
                        IOException
Get a Source object.

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

release

public void release(Source source)
Release a Source object.

Specified by:
release in interface SourceFactory

absolutize

public String absolutize(String baseURI,
                         String location)
Specified by:
absolutize in interface URIAbsolutizer


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