org.apache.cocoon.components.source
Class SourceHandlerImpl

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLoggable
        |
        +--org.apache.cocoon.components.source.SourceHandlerImpl
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.context.Contextualizable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.Loggable, SourceHandler

public final class SourceHandlerImpl
extends org.apache.avalon.framework.logger.AbstractLoggable
implements org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.component.Composable, org.apache.avalon.framework.context.Contextualizable, SourceHandler

Version:
$Id: SourceHandlerImpl.java,v 1.8 2002/03/21 04:51:22 vgritsenko Exp $
Author:
Carsten Ziegeler

Fields inherited from interface org.apache.cocoon.components.source.SourceHandler
ROLE
 
Constructor Summary
SourceHandlerImpl()
           
 
Method Summary
 void addFactory(java.lang.String protocol, SourceFactory factory)
          Add a factory
 void compose(org.apache.avalon.framework.component.ComponentManager manager)
          Set the current ComponentManager instance used by this Composable.
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          Configure the SourceFactories
 void contextualize(org.apache.avalon.framework.context.Context context)
          Get the context
 void dispose()
          Dispose
 Source getSource(Environment environment, java.lang.String location)
          Get a Source object.
 Source getSource(Environment environment, java.net.URL base, java.lang.String location)
          Get a Source object.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable
getLogger, setLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceHandlerImpl

public SourceHandlerImpl()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configure the SourceFactories
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

contextualize

public void contextualize(org.apache.avalon.framework.context.Context context)
                   throws org.apache.avalon.framework.context.ContextException
Get the context
Specified by:
contextualize in interface org.apache.avalon.framework.context.Contextualizable

compose

public void compose(org.apache.avalon.framework.component.ComponentManager manager)
             throws org.apache.avalon.framework.component.ComponentException
Set the current ComponentManager instance used by this Composable.
Specified by:
compose in interface org.apache.avalon.framework.component.Composable

dispose

public void dispose()
Dispose
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable

getSource

public Source getSource(Environment environment,
                        java.lang.String location)
                 throws ProcessingException,
                        java.net.MalformedURLException,
                        java.io.IOException
Get a Source object.
Specified by:
getSource in interface SourceHandler
Following copied from interface: org.apache.cocoon.components.source.SourceHandler
Parameters:
environment - This is optional.

getSource

public Source getSource(Environment environment,
                        java.net.URL base,
                        java.lang.String location)
                 throws ProcessingException,
                        java.net.MalformedURLException,
                        java.io.IOException
Get a Source object.
Specified by:
getSource in interface SourceHandler
Following copied from interface: org.apache.cocoon.components.source.SourceHandler
Parameters:
environment - This is optional.

addFactory

public void addFactory(java.lang.String protocol,
                       SourceFactory factory)
                throws ProcessingException
Add a factory
Specified by:
addFactory in interface SourceHandler


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.