use of org.jboss.wsf.spi.management.ServerConfig in project jbossws-cxf by jbossws.
the class TestUtils method getAndVerifyDefaultEndpointConfiguration.
public static EndpointConfig getAndVerifyDefaultEndpointConfiguration() throws Exception {
ServerConfig sc = getServerConfig();
EndpointConfig defaultConfig = sc.getEndpointConfig(EndpointConfig.STANDARD_ENDPOINT_CONFIG);
if (defaultConfig == null) {
throw new Exception("Missing AS endpoint config '" + EndpointConfig.STANDARD_ENDPOINT_CONFIG + "'!");
}
List<UnifiedHandlerChainMetaData> preHC = defaultConfig.getPreHandlerChains();
List<UnifiedHandlerChainMetaData> postHC = defaultConfig.getPostHandlerChains();
if ((preHC != null && !preHC.isEmpty()) || (postHC != null && !postHC.isEmpty())) {
throw new Exception("'" + EndpointConfig.STANDARD_ENDPOINT_CONFIG + "' is not empty!");
}
return defaultConfig;
}
use of org.jboss.wsf.spi.management.ServerConfig in project jbossws-cxf by jbossws.
the class TestUtils method removeTestCaseEndpointConfiguration.
public static void removeTestCaseEndpointConfiguration(String testConfigName) {
ServerConfig sc = getServerConfig();
sc.unregisterEndpointConfig(new EndpointConfig(testConfigName, null, null, null, null));
sc.reloadEndpointConfigs();
}
Aggregations