cziegeler 01/11/13 03:21:43 Added: src/scratchpad/org/apache/avalon/excalibur/source SourceFactory.java SourceResolver.java Log: Added SourceResolver interfaces Revision Changes Path 1.1 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source/SourceFactory.java Index: SourceFactory.java =================================================================== /***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * version 1.1, a copy of which has been included with this distribution in * * the LICENSE file. * *****************************************************************************/ package org.apache.avalon.excalibur.source; import org.apache.avalon.framework.component.Component; import java.io.IOException; import java.net.MalformedURLException; /** * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> * @version $Id: SourceFactory.java,v 1.1 2001/11/13 11:21:43 cziegeler Exp $ */ public interface SourceFactory extends Component { String ROLE = "org.apache.avalon.excalibur.source.SourceFactory"; /** * Get a <code>Source</code> object. * @param environment This is optional. */ Source getSource(String location) throws MalformedURLException, IOException; } 1.1 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/source/SourceResolver.java Index: SourceResolver.java =================================================================== /***************************************************************************** * Copyright (C) The Apache Software Foundation. All rights reserved. * * ------------------------------------------------------------------------- * * This software is published under the terms of the Apache Software License * * version 1.1, a copy of which has been included with this distribution in * * the LICENSE file. * *****************************************************************************/ package org.apache.avalon.excalibur.source; import org.apache.avalon.framework.component.Component; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; /** * Base interface for resolving a source by system identifiers. * * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> * @version CVS $Revision: 1.1 $ $Date: 2001/11/13 11:21:43 $ */ public interface SourceResolver extends Component { String ROLE = "org.apache.avalon.excalibur.source.SourceResolver"; /** * Set the base URL. All relative references are resolved * according to this URL. */ void setBaseURL(URL base); /** * Get the base URL */ URL getBaseURL(); /** * Get a <code>Source</code> object. */ Source resolve(String location) throws MalformedURLException, IOException; /** * Get a <code>Source</code> object. */ Source resolve(URL base, String location) throws MalformedURLException, IOException; }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>