1 16 package org.apache.axis.deployment.wsdd.providers; 17 18 import org.apache.axis.EngineConfiguration; 19 import org.apache.axis.Handler; 20 import org.apache.axis.deployment.wsdd.WSDDConstants; 21 import org.apache.axis.deployment.wsdd.WSDDProvider; 22 import org.apache.axis.deployment.wsdd.WSDDService; 23 import org.apache.axis.encoding.SerializationContext; 24 import org.apache.axis.providers.BSFProvider; 25 26 import java.io.IOException ; 27 28 29 32 public class WSDDBsfProvider 33 extends WSDDProvider 34 { 35 public String getName() { 36 return WSDDConstants.PROVIDER_BSF; 37 } 38 39 public Handler newProviderInstance(WSDDService service, 40 EngineConfiguration registry) 41 throws Exception 42 { 43 Handler provider = new org.apache.axis.providers.BSFProvider(); 44 45 String option = service.getParameter("language"); 46 47 if (!option.equals("")) { 48 provider.setOption(BSFProvider.OPTION_LANGUAGE, option); 49 } 50 51 option = service.getParameter("src"); 52 53 if (!option.equals("")) { 54 provider.setOption(BSFProvider.OPTION_SRC, option); 55 } 56 57 60 if (!option.equals("")) { 61 provider.setOption(BSFProvider.OPTION_SCRIPT, option); 62 } 63 64 return provider; 65 } 66 67 70 public void writeToContext(SerializationContext context) 71 throws IOException { 72 } 73 } 74 | Popular Tags |