/** * Checks if the modules, referred by server.xml, exist or that they are deployed. * * @throws org.apache.axis2.AxisFault : If smt goes wrong */ public void engageModules() throws AxisFault { axisConfig.engageGlobalModules(); }
public AxisServiceGroup getServiceGroup(String serviceNameAndGroupString) { // return (AxisServiceGroup) // serviceGroups.get(serviceNameAndGroupString); return (AxisServiceGroup) getChild(serviceNameAndGroupString); }
/** * If you do not want Axis2 to start the server automatically then pass the "false" else "true" * * @param startOnDeploy : boolean */ public AxisServer(boolean startOnDeploy) { this.startOnDeploy = startOnDeploy; listenerManager = new ListenerManager(); }
public static SynapseEnvironment getSynapseEnvironment(AxisConfiguration axisCfg) { return axisCfg != null && axisCfg.getParameter(SynapseConstants.SYNAPSE_HOME) != null ? (SynapseEnvironment) axisCfg.getParameterValue(SynapseConstants.SYNAPSE_CONFIG) : null; }
private static Handler.InvocationResponse invokeAxisEngine(MessageContext messageContext) throws AxisFault { return AxisEngine.receive(messageContext); }
/** * Engage all the previously added global modules. * * @throws AxisFault if an individual engageModule() fails */ public void engageGlobalModules() throws AxisFault { for (String aGlobalModuleList : globalModuleList) { engageModule(aGlobalModuleList); } }
/** * Engage a Module at this level * * @param axisModule the Module to engage * @throws AxisFault if there's a problem engaging */ public void engageModule(AxisModule axisModule) throws AxisFault { engageModule(axisModule, this); AxisConfiguration config = getAxisConfiguration(); config.notifyObservers(new AxisEvent(AxisEvent.MODULE_ENGAGED , this) , axisModule); }
/** * Creates a default configuration context if one is not set already via setConfigurationContext * * @return ConfigurationContext * @throws AxisFault */ public ConfigurationContext getConfigurationContext() throws AxisFault { if (configContext == null) { configContext = createDefaultConfigurationContext(); } return configContext; }
public Iterator<AxisServiceGroup> getServiceGroups() { // return serviceGroups.values().iterator(); return (Iterator<AxisServiceGroup>) getChildren(); }
/** * If you do not want Axis2 to start the server automatically then pass the "false" else "true" * * @param startOnDeploy : boolean */ public AxisServer(boolean startOnDeploy) { this.startOnDeploy = startOnDeploy; listenerManager = new ListenerManager(); }
/** * Engage all the previously added global modules. * * @throws AxisFault if an individual engageModule() fails */ public void engageGlobalModules() throws AxisFault { for (String aGlobalModuleList : globalModuleList) { engageModule(aGlobalModuleList); } }
public void removeService(String name) throws AxisFault { AxisService service = getService(name); if (service != null) { getAxisConfiguration().notifyObservers(new AxisEvent(AxisEvent.SERVICE_REMOVE,service), service); } removeChild(name); }
/** * Checks if the modules, referred by server.xml, exist or that they are deployed. * * @throws org.apache.axis2.AxisFault : If smt goes wrong */ public void engageModules() throws AxisFault { axisConfig.engageGlobalModules(); }
public AxisServiceGroup getServiceGroup(String serviceNameAndGroupString) { // return (AxisServiceGroup) // serviceGroups.get(serviceNameAndGroupString); return (AxisServiceGroup) getChild(serviceNameAndGroupString); }
/** * Creates a default configuration context if one is not set already via setConfigurationContext * * @return ConfigurationContext * @throws AxisFault */ public ConfigurationContext getConfigurationContext() throws AxisFault { if (configContext == null) { configContext = createDefaultConfigurationContext(); } return configContext; }
public void removeService(String name) throws AxisFault { AxisService service = getService(name); if (service != null) { getAxisConfiguration().notifyObservers(new AxisEvent(AxisEvent.SERVICE_REMOVE,service), service); } removeChild(name); }