/** * Configure an AxisEngine. Right now just calls the default * configuration if there is one, since we don't do anything special. */ public void configureEngine(AxisEngine engine) throws ConfigurationException { this.engine = engine; if (defaultConfiguration != null) defaultConfiguration.configureEngine(engine); for (Iterator i = services.values().iterator(); i.hasNext(); ) { ((SOAPService)i.next()).setEngine(engine); } }
/** * Returns the global configuration options. */ public Hashtable getGlobalOptions() throws ConfigurationException { if (globalOptions != null) return globalOptions; if (defaultConfiguration != null) return defaultConfiguration.getGlobalOptions(); return null; }
/** * Get the global request <code>Handler</code>. * * @return the <code>Handler</code> used for global requests * @throws ConfigurationException */ public Handler getGlobalRequest() throws ConfigurationException { return config.getGlobalRequest(); }
/** * Get the <code>SOAPService</code> for a particular local name. * * @param name the local name of the request type * @return the <code>SOAPService</code> for this request type * @throws AxisFault */ public SOAPService getService(String name) throws AxisFault { try { return config.getService(new QName(null, name)); } catch (ConfigurationException e) { try { return config.getServiceByNamespaceURI(name); } catch (ConfigurationException e1) { throw new AxisFault(e); } } }
public Handler getHandler(QName qname) throws ConfigurationException { Handler handler = (Handler)handlers.get(qname); if ((defaultConfiguration != null) && (handler == null)) handler = defaultConfiguration.getHandler(qname); return handler; }
private Set getDeployedServiceNames(MessageContext msgContext) throws ConfigurationException { Set serviceNames = new HashSet(); Iterator deployedServicesIter = msgContext.getAxisEngine().getConfig().getDeployedServices(); while (deployedServicesIter.hasNext()) { ServiceDesc serviceDesc = (ServiceDesc) deployedServicesIter.next(); serviceNames.add(serviceDesc.getName()); } return serviceNames; }
/** * (Re-)load the global options from the registry. * * @throws ConfigurationException */ public void refreshGlobalOptions() throws ConfigurationException { Hashtable globalOptions = config.getGlobalOptions(); if (globalOptions != null) setOptions(globalOptions); normaliseOptions(this); // fixme: If we change actorURIs to List, this copy constructor can // go away... actorURIs = new ArrayList(config.getRoles()); }
String name = request.getParameter("service"); log.info(Messages.getMessage("adminServiceSuspend", name, callerIP)); SOAPService service = server.getConfig().getService(new QName("",name)); service.stop(); String name = request.getParameter("service"); log.info(Messages.getMessage("adminServiceResume", name, callerIP)); SOAPService service = server.getConfig().getService(new QName("",name)); service.start(); i = server.getConfig().getDeployedServices(); } catch (ConfigurationException configException) { String name = sd.getName(); sb.append(name); SOAPService service = server.getConfig().getService(new QName("",name)); if(service.isRunning()) { sb.append(" <a href=\"AdminServlet?cmd=suspend&service=" + name + "\">suspend</a>\n");
public SOAPService getService(QName qname) throws ConfigurationException { SOAPService service = (SOAPService)services.get(qname); if ((defaultConfiguration != null) && (service == null)) service = defaultConfiguration.getService(qname); return service; }
public Handler getTransport(QName qname) throws ConfigurationException { Handler transport = (Handler)transports.get(qname); if ((defaultConfiguration != null) && (transport == null)) transport = defaultConfiguration.getTransport(qname); return transport; }
/** * Returns a global response handler. */ public Handler getGlobalResponse() throws ConfigurationException { if (globalResponse != null) return globalResponse; if (defaultConfiguration != null) return defaultConfiguration.getGlobalResponse(); return null; }
/** * Get a service which has been mapped to a particular namespace * * @param namespace a namespace URI * @return an instance of the appropriate Service, or null */ public SOAPService getServiceByNamespaceURI(String namespace) throws ConfigurationException { SOAPService service = (SOAPService)services.get(new QName("",namespace)); if ((service == null) && (defaultConfiguration != null)) service = defaultConfiguration.getServiceByNamespaceURI(namespace); return service; }
public Handler getHandler(QName qname) throws ConfigurationException { Handler handler = (Handler)handlers.get(qname); if ((defaultConfiguration != null) && (handler == null)) handler = defaultConfiguration.getHandler(qname); return handler; }
private Set getDeployedServiceNames(MessageContext msgContext) throws ConfigurationException { Set serviceNames = new HashSet(); Iterator deployedServicesIter = msgContext.getAxisEngine().getConfig().getDeployedServices(); while (deployedServicesIter.hasNext()) { ServiceDesc serviceDesc = (ServiceDesc) deployedServicesIter.next(); serviceNames.add(serviceDesc.getName()); } return serviceNames; }
/** * (Re-)load the global options from the registry. * * @throws ConfigurationException */ public void refreshGlobalOptions() throws ConfigurationException { Hashtable globalOptions = config.getGlobalOptions(); if (globalOptions != null) setOptions(globalOptions); normaliseOptions(this); // fixme: If we change actorURIs to List, this copy constructor can // go away... actorURIs = new ArrayList(config.getRoles()); }
/** * Get the <code>SOAPService</code> for a particular local name. * * @param name the local name of the request type * @return the <code>SOAPService</code> for this request type * @throws AxisFault */ public SOAPService getService(String name) throws AxisFault { try { return config.getService(new QName(null, name)); } catch (ConfigurationException e) { try { return config.getServiceByNamespaceURI(name); } catch (ConfigurationException e1) { throw new AxisFault(e); } } }
String name = request.getParameter("service"); log.info(Messages.getMessage("adminServiceSuspend", name, callerIP)); SOAPService service = server.getConfig().getService(new QName("",name)); service.stop(); String name = request.getParameter("service"); log.info(Messages.getMessage("adminServiceResume", name, callerIP)); SOAPService service = server.getConfig().getService(new QName("",name)); service.start(); i = server.getConfig().getDeployedServices(); } catch (ConfigurationException configException) { String name = sd.getName(); sb.append(name); SOAPService service = server.getConfig().getService(new QName("",name)); if(service.isRunning()) { sb.append(" <a href=\"AdminServlet?cmd=suspend&service=" + name + "\">suspend</a>\n");
public SOAPService getService(QName qname) throws ConfigurationException { SOAPService service = (SOAPService)services.get(qname); if ((defaultConfiguration != null) && (service == null)) service = defaultConfiguration.getService(qname); return service; }
public Handler getTransport(QName qname) throws ConfigurationException { Handler transport = (Handler)transports.get(qname); if ((defaultConfiguration != null) && (transport == null)) transport = defaultConfiguration.getTransport(qname); return transport; }
/** * Get the global respones <code>Handler</code>. * * @return the <code>Handler</code> used for global responses * @throws ConfigurationException */ public Handler getGlobalResponse() throws ConfigurationException { return config.getGlobalResponse(); }