import org.apache.axis.EngineConfiguration; import org.apache.axis.Handler; import org.apache.axis.deployment.wsdd.WSDDProvider; import org.apache.axis.deployment.wsdd.WSDDService; public class WSDDSpringProvider extends WSDDProvider { public static final String PROVIDER_NAME = "SPRING"; public static final String PARAM_SPRING_BEAN_ID = "springBeanId"; public String getName(){ return "SPRING"; } public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { return new SpringProvider(service.getParameter("springBeanId")); } }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { Class _class = ClassUtils.forName("org.apache.axis.providers.ComProvider"); BasicProvider provider = (BasicProvider) _class.newInstance(); String option = service.getParameter("ProgID"); if (!option.equals("")) { provider.setOption(OPTION_PROGID, option); } option = service.getParameter("threadingModel"); if (option!= null && !option.equals("")) { provider.setOption(OPTION_THREADING_MODEL, option); } return provider; } }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { Class _class = ClassUtils.forName("org.apache.axis.providers.ComProvider"); BasicProvider provider = (BasicProvider) _class.newInstance(); String option = service.getParameter("ProgID"); if (!option.equals("")) { provider.setOption(OPTION_PROGID, option); } option = service.getParameter("threadingModel"); if (option!= null && !option.equals("")) { provider.setOption(OPTION_THREADING_MODEL, option); } return provider; } }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { Class _class = ClassUtils.forName("org.apache.axis.providers.ComProvider"); BasicProvider provider = (BasicProvider) _class.newInstance(); String option = service.getParameter("ProgID"); if (!option.equals("")) { provider.setOption(OPTION_PROGID, option); } option = service.getParameter("threadingModel"); if (option!= null && !option.equals("")) { provider.setOption(OPTION_THREADING_MODEL, option); } return provider; } }
private void createTMR() { tmr = new TypeMappingRegistryImpl(false); String version = getParameter("typeMappingVersion"); ((TypeMappingRegistryImpl)tmr).doRegisterFromVersion(version); }
private void createTMR() { tmr = new TypeMappingRegistryImpl(false); String version = getParameter("typeMappingVersion"); ((TypeMappingRegistryImpl)tmr).doRegisterFromVersion(version); }
private void createTMR() { tmr = new TypeMappingRegistryImpl(false); String version = getParameter("typeMappingVersion"); ((TypeMappingRegistryImpl)tmr).doRegisterFromVersion(version); }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { Handler provider = new org.apache.axis.providers.BSFProvider(); String option = service.getParameter("language"); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_LANGUAGE, option); } option = service.getParameter("src"); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_SRC, option); } // !!! What to do here? //option = XMLUtils.getInnerXMLString(prov); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_SCRIPT, option); } return provider; }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { Handler provider = new org.apache.axis.providers.BSFProvider(); String option = service.getParameter("language"); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_LANGUAGE, option); } option = service.getParameter("src"); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_SRC, option); } // !!! What to do here? //option = XMLUtils.getInnerXMLString(prov); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_SCRIPT, option); } return provider; }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { Handler provider = new org.apache.axis.providers.BSFProvider(); String option = service.getParameter("language"); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_LANGUAGE, option); } option = service.getParameter("src"); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_SRC, option); } // !!! What to do here? //option = XMLUtils.getInnerXMLString(prov); if (!option.equals("")) { provider.setOption(BSFProvider.OPTION_SCRIPT, option); } return provider; }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { String providerClass = service.getParameter("handlerClass"); if (providerClass == null) { throw new ConfigurationException(Messages.getMessage("noHandlerClass00")); } Class _class = ClassUtils.forName(providerClass); if (!(Handler.class.isAssignableFrom(_class))) { throw new ConfigurationException(Messages.getMessage("badHandlerClass00", _class.getName())); } return (Handler)_class.newInstance(); } }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { String providerClass = service.getParameter("handlerClass"); if (providerClass == null) { throw new ConfigurationException(Messages.getMessage("noHandlerClass00")); } Class _class = ClassUtils.forName(providerClass); if (!(Handler.class.isAssignableFrom(_class))) { throw new ConfigurationException(Messages.getMessage("badHandlerClass00", _class.getName())); } return (Handler)_class.newInstance(); } }
public Handler newProviderInstance(WSDDService service, EngineConfiguration registry) throws Exception { String providerClass = service.getParameter("handlerClass"); if (providerClass == null) { throw new ConfigurationException(Messages.getMessage("noHandlerClass00")); } Class _class = ClassUtils.forName(providerClass); if (!(Handler.class.isAssignableFrom(_class))) { throw new ConfigurationException(Messages.getMessage("badHandlerClass00", _class.getName())); } return (Handler)_class.newInstance(); } }
/** * This method can be used for dynamic deployment using new WSDDService() * etc. It validates some standard parameters for some standard providers * (if present). Do this before deployment.deployService(). */ public void validateDescriptors() throws WSDDException { if (tmr == null) { initTMR(); } desc.setTypeMappingRegistry(tmr); desc.setTypeMapping(getTypeMapping(desc.getUse().getEncoding())); String allowedMethods = getParameter(JavaProvider.OPTION_ALLOWEDMETHODS); if (allowedMethods != null && !"*".equals(allowedMethods)) { ArrayList methodList = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer(allowedMethods, " ,"); while (tokenizer.hasMoreTokens()) { methodList.add(tokenizer.nextToken()); } desc.setAllowedMethods(methodList); } }
/** * This method can be used for dynamic deployment using new WSDDService() * etc. It validates some standard parameters for some standard providers * (if present). Do this before deployment.deployService(). */ public void validateDescriptors() throws WSDDException { if (tmr == null) { initTMR(); } desc.setTypeMappingRegistry(tmr); desc.setTypeMapping(getTypeMapping(desc.getUse().getEncoding())); String allowedMethods = getParameter(JavaProvider.OPTION_ALLOWEDMETHODS); if (allowedMethods != null && !"*".equals(allowedMethods)) { ArrayList methodList = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer(allowedMethods, " ,"); while (tokenizer.hasMoreTokens()) { methodList.add(tokenizer.nextToken()); } desc.setAllowedMethods(methodList); } }
/** * This method can be used for dynamic deployment using new WSDDService() * etc. It validates some standard parameters for some standard providers * (if present). Do this before deployment.deployService(). */ public void validateDescriptors() throws WSDDException { if (tmr == null) { initTMR(); } desc.setTypeMappingRegistry(tmr); desc.setTypeMapping(getTypeMapping(desc.getUse().getEncoding())); String allowedMethods = getParameter(JavaProvider.OPTION_ALLOWEDMETHODS); if (allowedMethods != null && !"*".equals(allowedMethods)) { ArrayList methodList = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer(allowedMethods, " ,"); while (tokenizer.hasMoreTokens()) { methodList.add(tokenizer.nextToken()); } desc.setAllowedMethods(methodList); } }