KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > environment > SourceResolver


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.environment;
17
18 import java.io.IOException JavaDoc;
19
20 import org.apache.cocoon.ProcessingException;
21 import org.xml.sax.SAXException JavaDoc;
22
23 /**
24  * Base interface for resolving a source by system identifiers. This
25  * component is a special extension of the Avalon Excalibur
26  * {@link org.apache.excalibur.source.SourceResolver} that is only
27  * used for Cocoon sitemap components.
28  *
29  * @author <a HREF="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
30  * @version CVS $Id: SourceResolver.java 30932 2004-07-29 17:35:38Z vgritsenko $
31  */

32
33 public interface SourceResolver
34 extends org.apache.excalibur.source.SourceResolver {
35
36     /**
37      * Resolve the source.
38      * @param systemID This is either a system identifier
39      * (<code>java.net.URL</code> or a local file.
40      * @deprecated Use the resolveURI methods instead
41      */

42     Source resolve(String JavaDoc systemID)
43     throws ProcessingException, SAXException JavaDoc, IOException JavaDoc;
44
45 }
46
47
Popular Tags