Search in sources :

Example 1 with ServerConfig

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

Example 2 with ServerConfig

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

Example 3 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 4 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 5 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)

Aggregations

ServerConfig (org.jboss.wsf.spi.management.ServerConfig)15 ClientConfig (org.jboss.wsf.spi.metadata.config.ClientConfig)5 EndpointConfig (org.jboss.wsf.spi.metadata.config.EndpointConfig)3 UnifiedHandlerChainMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData)3 HashMap (java.util.HashMap)1 MBeanServer (javax.management.MBeanServer)1 ServerEnvironment (org.jboss.as.server.ServerEnvironment)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 XTSService (org.jboss.jbossts.XTSService)1 WSCEnvironmentBean (org.jboss.jbossts.xts.environment.WSCEnvironmentBean)1 ServiceName (org.jboss.msc.service.ServiceName)1 StartException (org.jboss.msc.service.StartException)1 SPIProvider (org.jboss.wsf.spi.SPIProvider)1 ServerConfigFactory (org.jboss.wsf.spi.management.ServerConfigFactory)1 Test (org.junit.Test)1 UndertowService (org.wildfly.extension.undertow.UndertowService)1