Search in sources :

Example 6 with ServerConfig

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

Example 7 with ServerConfig

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

Example 8 with ServerConfig

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

Example 9 with ServerConfig

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

Example 10 with ServerConfig

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

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