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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.cocoon.source.LenyaDocSourceFactory
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe, org.apache.excalibur.source.SourceFactory

public class LenyaDocSourceFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.excalibur.source.SourceFactory, org.apache.avalon.framework.thread.ThreadSafe, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.configuration.Configurable

A factory for the "lenyadoc" scheme (virtual protocol), which is used to resolve any src="lenyadoc:<...>" attributes in sitemaps. lenyadoc:///// lenyadoc:// If we want to request the meta data for a document instead of the document itself, we need to use lenyadoc:meta:// lenyadoc:meta://///

Version:
$Id:$

Field Summary
protected static java.lang.String SCHEME
           
 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE
 
Constructor Summary
LenyaDocSourceFactory()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
 void contextualize(org.apache.avalon.framework.context.Context context)
          Used for resolving the object model.
 org.apache.excalibur.source.Source getSource(java.lang.String location, java.util.Map parameters)
           
 void release(org.apache.excalibur.source.Source source)
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 
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
 

Field Detail

SCHEME

protected static final java.lang.String SCHEME
See Also:
Constant Field Values
Constructor Detail

LenyaDocSourceFactory

public LenyaDocSourceFactory()
Method Detail

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Used for resolving the object model.

Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable
Throws:
org.apache.avalon.framework.context.ContextException
See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

getSource

public org.apache.excalibur.source.Source getSource(java.lang.String location,
                                                    java.util.Map parameters)
                                             throws java.net.MalformedURLException,
                                                    java.io.IOException,
                                                    org.apache.excalibur.source.SourceException
Specified by:
getSource in interface org.apache.excalibur.source.SourceFactory
Throws:
java.net.MalformedURLException
java.io.IOException
org.apache.excalibur.source.SourceException
See Also:
SourceFactory.getSource(java.lang.String, java.util.Map)

release

public void release(org.apache.excalibur.source.Source source)
Specified by:
release in interface org.apache.excalibur.source.SourceFactory
See Also:
SourceFactory.release(org.apache.excalibur.source.Source)


Copyright © $ Apache Software Foundation. All Rights Reserved.