1 16 17 package org.apache.cocoon.components.source; 18 19 import java.io.IOException ; 20 import java.net.MalformedURLException ; 21 import java.util.Map ; 22 23 import org.apache.cocoon.ProcessingException; 24 import org.apache.cocoon.environment.Source; 25 import org.apache.cocoon.environment.SourceResolver; 26 import org.xml.sax.SAXException ; 27 28 33 public class SourceResolverAdapter implements SourceResolver 34 { 35 private org.apache.excalibur.source.SourceResolver resolver; 36 37 public SourceResolverAdapter(org.apache.excalibur.source.SourceResolver resolver) { 38 this.resolver = resolver; 39 } 40 41 46 public org.apache.excalibur.source.Source resolveURI( String location ) 47 throws MalformedURLException , IOException , org.apache.excalibur.source.SourceException { 48 49 return this.resolver.resolveURI(location); 50 } 51 52 64 public org.apache.excalibur.source.Source resolveURI( String location, 65 String base, 66 Map parameters ) 67 throws MalformedURLException , IOException , org.apache.excalibur.source.SourceException { 68 69 return this.resolver.resolveURI(location, base, parameters); 70 } 71 72 75 public void release( org.apache.excalibur.source.Source source ) { 76 this.resolver.release(source); 77 } 78 79 85 public Source resolve(String systemID) 86 throws ProcessingException, SAXException , IOException { 87 88 throw new RuntimeException ("Method SourceResolver.resolve(String) is deprecated"); 89 } 90 } 91 | Popular Tags |