1 16 package org.apache.cocoon.components.source; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.cocoon.ProcessingException; 20 import org.apache.cocoon.environment.Environment; 21 import org.apache.cocoon.environment.Source; 22 23 import java.io.IOException ; 24 import java.net.MalformedURLException ; 25 import java.net.URL ; 26 27 33 public interface SourceHandler extends Component { 34 35 String ROLE = "org.apache.cocoon.components.source.SourceHandler"; 36 37 41 Source getSource(Environment environment, String location) 42 throws ProcessingException, MalformedURLException , IOException ; 43 44 48 Source getSource(Environment environment, URL base, String location) 49 throws ProcessingException, MalformedURLException , IOException ; 50 51 61 void addFactory(String protocol, SourceFactory factory) 62 throws ProcessingException; 63 64 } 65 | Popular Tags |