1 55 56 package org.jboss.axis.configuration; 57 58 import org.jboss.axis.AxisEngine; 59 import org.jboss.axis.ConfigurationException; 60 61 import java.io.ByteArrayInputStream ; 62 63 81 public class XMLStringProvider extends FileProvider 82 { 83 String xmlConfiguration; 84 85 91 public XMLStringProvider(String xmlConfiguration) 92 { 93 super(new ByteArrayInputStream (xmlConfiguration.getBytes())); 94 this.xmlConfiguration = xmlConfiguration; 95 } 96 97 public void writeEngineConfig(AxisEngine engine) 98 throws ConfigurationException 99 { 100 } 102 103 public void configureEngine(AxisEngine engine) throws ConfigurationException 104 { 105 setInputStream(new ByteArrayInputStream (xmlConfiguration.getBytes())); 106 super.configureEngine(engine); 107 } 108 } 109 | Popular Tags |