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;
}
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 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 + "'!");
}
Map<String, String> props = defaultConfig.getProperties();
if (props != null && !props.isEmpty()) {
throw new Exception("'" + ClientConfig.STANDARD_CLIENT_CONFIG + "' property set is not empty!");
}
return defaultConfig;
}
Aggregations