Search in sources :

Example 1 with ProxyServerConfig

use of com.hotels.styx.proxy.ProxyServerConfig in project styx by ExpediaGroup.

the class StyxServerTest method styxConfig.

private static StyxConfig styxConfig() {
    ProxyServerConfig proxyConfig = new ProxyServerConfig.Builder().setHttpConnector(new HttpConnectorConfig(0)).build();
    AdminServerConfig adminConfig = new AdminServerConfig.Builder().setHttpConnector(new HttpConnectorConfig(0)).build();
    Configuration config = new MapBackedConfiguration(EMPTY_CONFIGURATION).set("admin", adminConfig).set("proxy", proxyConfig);
    return new StyxConfig(config);
}
Also used : AdminServerConfig(com.hotels.styx.admin.AdminServerConfig) Configuration(com.hotels.styx.api.configuration.Configuration) MapBackedConfiguration(com.hotels.styx.api.configuration.Configuration.MapBackedConfiguration) ProxyServerConfig(com.hotels.styx.proxy.ProxyServerConfig) MapBackedConfiguration(com.hotels.styx.api.configuration.Configuration.MapBackedConfiguration) HttpConnectorConfig(com.hotels.styx.server.HttpConnectorConfig)

Aggregations

AdminServerConfig (com.hotels.styx.admin.AdminServerConfig)1 Configuration (com.hotels.styx.api.configuration.Configuration)1 MapBackedConfiguration (com.hotels.styx.api.configuration.Configuration.MapBackedConfiguration)1 ProxyServerConfig (com.hotels.styx.proxy.ProxyServerConfig)1 HttpConnectorConfig (com.hotels.styx.server.HttpConnectorConfig)1