Search in sources :

Example 16 with ServerConfig

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;
}
Also used : ServerConfig(org.jboss.wsf.spi.management.ServerConfig) UnifiedHandlerChainMetaData(org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData) EndpointConfig(org.jboss.wsf.spi.metadata.config.EndpointConfig)

Example 17 with ServerConfig

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();
}
Also used : ServerConfig(org.jboss.wsf.spi.management.ServerConfig) EndpointConfig(org.jboss.wsf.spi.metadata.config.EndpointConfig)

Aggregations

ServerConfig (org.jboss.wsf.spi.management.ServerConfig)17 ClientConfig (org.jboss.wsf.spi.metadata.config.ClientConfig)5 ServiceName (org.jboss.msc.service.ServiceName)3 EndpointConfig (org.jboss.wsf.spi.metadata.config.EndpointConfig)3 UnifiedHandlerChainMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData)3 PathAddress (org.jboss.as.controller.PathAddress)2 ConfigService (org.jboss.as.webservices.service.ConfigService)2 ServiceTarget (org.jboss.msc.service.ServiceTarget)2 HashMap (java.util.HashMap)1 MBeanServer (javax.management.MBeanServer)1 AbstractSubsystemBaseTest (org.jboss.as.subsystem.test.AbstractSubsystemBaseTest)1 KernelServices (org.jboss.as.subsystem.test.KernelServices)1 KernelServicesBuilder (org.jboss.as.subsystem.test.KernelServicesBuilder)1 PackageUtils.getClientConfigServiceName (org.jboss.as.webservices.dmr.PackageUtils.getClientConfigServiceName)1 PackageUtils.getEndpointConfigServiceName (org.jboss.as.webservices.dmr.PackageUtils.getEndpointConfigServiceName)1 XTSService (org.jboss.jbossts.XTSService)1 WSCEnvironmentBean (org.jboss.jbossts.xts.environment.WSCEnvironmentBean)1 StartException (org.jboss.msc.service.StartException)1 SPIProvider (org.jboss.wsf.spi.SPIProvider)1 ServerConfigFactory (org.jboss.wsf.spi.management.ServerConfigFactory)1