org.apache.cocoon.components.source
Interface SourceHandler

All Superinterfaces:
Component
All Known Implementing Classes:
SourceHandlerImpl

Deprecated. The Avalon Excalibur Source Resolving is now used.

public interface SourceHandler
extends Component

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

Field Summary
static String ROLE
          Deprecated.  
 
Method Summary
 void addFactory(String protocol, SourceFactory factory)
          Deprecated. Add a new source factory.
 Source getSource(Environment environment, String location)
          Deprecated. Get a Source object.
 Source getSource(Environment environment, URL base, String location)
          Deprecated. Get a Source object.
 

Field Detail

ROLE

static final String ROLE
Deprecated. 
See Also:
Constant Field Values
Method Detail

getSource

Source getSource(Environment environment,
                 String location)
                 throws ProcessingException,
                        MalformedURLException,
                        IOException
Deprecated. 
Get a Source object.

Parameters:
environment - This is optional.
Throws:
ProcessingException
MalformedURLException
IOException

getSource

Source getSource(Environment environment,
                 URL base,
                 String location)
                 throws ProcessingException,
                        MalformedURLException,
                        IOException
Deprecated. 
Get a Source object.

Parameters:
environment - This is optional.
Throws:
ProcessingException
MalformedURLException
IOException

addFactory

void addFactory(String protocol,
                SourceFactory factory)
                throws ProcessingException
Deprecated. 
Add a new source factory. The factory is initialized by the handler, this means the handler test for the Avalon interfaces Composable, Contextualizable and LogEnabled. When the handler is disposed it should also test the Disposable interface. If a factory with the protocol already exists it is overridden by this new factory.

Throws:
ProcessingException


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