1 16 17 package org.apache.axis.configuration; 18 19 import org.apache.axis.AxisEngine; 20 import org.apache.axis.ConfigurationException; 21 22 import java.io.ByteArrayInputStream ; 23 24 42 public class XMLStringProvider extends FileProvider 43 { 44 String xmlConfiguration; 45 46 52 public XMLStringProvider(String xmlConfiguration) 53 { 54 super(new ByteArrayInputStream (xmlConfiguration.getBytes())); 55 this.xmlConfiguration = xmlConfiguration; 56 } 57 58 public void writeEngineConfig(AxisEngine engine) 59 throws ConfigurationException { 60 } 62 63 public void configureEngine(AxisEngine engine) throws ConfigurationException { 64 setInputStream(new ByteArrayInputStream (xmlConfiguration.getBytes())); 65 super.configureEngine(engine); 66 } 67 } 68 | Popular Tags |