use of org.jboss.wsf.spi.management.ServerConfig in project jbossws-cxf by jbossws.
the class TestUtils method setEndpointConfigAndReload.
public static void setEndpointConfigAndReload(EndpointConfig config) {
ServerConfig sc = getServerConfig();
sc.registerEndpointConfig(config);
sc.reloadEndpointConfigs();
}
use of org.jboss.wsf.spi.management.ServerConfig in project jbossws-cxf by jbossws.
the class SupportServlet method getDataDir.
private File getDataDir() {
if (dataDir == null) {
ClassLoader loader = ClassLoaderProvider.getDefaultProvider().getServerIntegrationClassLoader();
SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class, loader).getServerConfig();
dataDir = serverConfig.getServerDataDir();
}
return dataDir;
}
use of org.jboss.wsf.spi.management.ServerConfig in project jbossws-cxf by jbossws.
the class TestUtils method removeTestCaseClientConfiguration.
public static void removeTestCaseClientConfiguration(String testConfigName) {
ServerConfig sc = getServerConfig();
sc.unregisterClientConfig(new ClientConfig(testConfigName, null, null, null, null));
sc.reloadClientConfigs();
}
use of org.jboss.wsf.spi.management.ServerConfig in project jbossws-cxf by jbossws.
the class TestUtils method setClientConfigAndReload.
public static void setClientConfigAndReload(ClientConfig config) {
ServerConfig sc = getServerConfig();
sc.registerClientConfig(config);
sc.reloadClientConfigs();
}
use of org.jboss.wsf.spi.management.ServerConfig in project jbossws-cxf by jbossws.
the class TestUtils method getAndVerifyDefaultClientConfiguration.
public static ClientConfig getAndVerifyDefaultClientConfiguration() throws Exception {
ServerConfig sc = getServerConfig();
ClientConfig defaultConfig = sc.getClientConfig(ClientConfig.STANDARD_CLIENT_CONFIG);
if (defaultConfig == null) {
throw new Exception("Missing AS client config '" + ClientConfig.STANDARD_CLIENT_CONFIG + "'!");
}
List<UnifiedHandlerChainMetaData> preHC = defaultConfig.getPreHandlerChains();
List<UnifiedHandlerChainMetaData> postHC = defaultConfig.getPostHandlerChains();
if ((preHC != null && !preHC.isEmpty()) || (postHC != null && !postHC.isEmpty())) {
throw new Exception("'" + ClientConfig.STANDARD_CLIENT_CONFIG + "' is not empty!");
}
return defaultConfig;
}
Aggregations