Search in sources :

Example 6 with ConnectorConfig

use of com.yahoo.jdisc.http.ConnectorConfig in project vespa by vespa-engine.

the class StandaloneContainerActivator method start.

@Override
public void start(BundleContext bundleContext) throws Exception {
    for (ConnectorConfig config : getConnectorConfigs(getContainer())) {
        ServerSocketChannel socketChannel = bindChannel(config);
        registerChannels(bundleContext, config.listenPort(), socketChannel);
    }
}
Also used : ConnectorConfig(com.yahoo.jdisc.http.ConnectorConfig) ServerSocketChannel(java.nio.channels.ServerSocketChannel)

Example 7 with ConnectorConfig

use of com.yahoo.jdisc.http.ConnectorConfig in project vespa by vespa-engine.

the class ConnectorFactoryTest method ssl_pem_config_is_validated.

@Test(expectedExceptions = IllegalArgumentException.class)
public void ssl_pem_config_is_validated() {
    ConnectorConfig config = new ConnectorConfig(new ConnectorConfig.Builder().ssl(new Ssl.Builder().enabled(true).keyStoreType(PEM).keyStorePath("nonEmpty")));
    ConnectorFactory willThrowException = createConnectorFactory(config);
}
Also used : ConnectorConfig(com.yahoo.jdisc.http.ConnectorConfig) Ssl(com.yahoo.jdisc.http.ConnectorConfig.Ssl) Test(org.testng.annotations.Test)

Aggregations

ConnectorConfig (com.yahoo.jdisc.http.ConnectorConfig)7 Test (org.testng.annotations.Test)4 DomBuilderTest (com.yahoo.config.model.builder.xml.test.DomBuilderTest)2 Ssl (com.yahoo.jdisc.http.ConnectorConfig.Ssl)2 IOException (java.io.IOException)2 ServerSocketChannel (java.nio.channels.ServerSocketChannel)2 ServletException (javax.servlet.ServletException)2 Server (org.eclipse.jetty.server.Server)2 Test (org.junit.Test)2 Element (org.w3c.dom.Element)2 ContainerCluster (com.yahoo.vespa.model.container.ContainerCluster)1 JettyHttpServer (com.yahoo.vespa.model.container.http.JettyHttpServer)1 InetSocketAddress (java.net.InetSocketAddress)1