Search in sources :

Example 1 with HttpConnectorProvider

use of org.apache.myriad.webapp.HttpConnectorProvider in project incubator-myriad by apache.

the class TestObjectFactory method getMyriadWebServer.

public static MyriadWebServer getMyriadWebServer(MyriadConfiguration cfg) {
    Server server = TestObjectFactory.getJettyServer();
    HttpConnectorProvider provider = new HttpConnectorProvider(cfg);
    Connector connector = provider.get();
    return new MyriadWebServer(server, connector, new GuiceFilter());
}
Also used : Connector(org.mortbay.jetty.Connector) MyriadWebServer(org.apache.myriad.webapp.MyriadWebServer) GuiceFilter(com.google.inject.servlet.GuiceFilter) Server(org.mortbay.jetty.Server) MyriadWebServer(org.apache.myriad.webapp.MyriadWebServer) HttpConnectorProvider(org.apache.myriad.webapp.HttpConnectorProvider)

Aggregations

GuiceFilter (com.google.inject.servlet.GuiceFilter)1 HttpConnectorProvider (org.apache.myriad.webapp.HttpConnectorProvider)1 MyriadWebServer (org.apache.myriad.webapp.MyriadWebServer)1 Connector (org.mortbay.jetty.Connector)1 Server (org.mortbay.jetty.Server)1