Package org.glassfish.jersey.jetty

Examples of org.glassfish.jersey.jetty.JettyHttpContainer$JettyRequestReferencingFactory


    @Test
    public void testParentServiceLocator() {
        final ServiceLocator locator = new ServiceLocatorImpl("MyServiceLocator", null);
        final Server server = JettyHttpContainerFactory.createServer(URI.create("http://localhost:9876"),
                    new ResourceConfig(Resource.class), false, locator);
            JettyHttpContainer container = (JettyHttpContainer) server.getHandler();
            ServiceLocator appLocator = container.getApplicationHandler().getServiceLocator();
            assertTrue("Application service locator was expected to have defined parent locator", appLocator.getParent() == locator);
    }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.jetty.JettyHttpContainer$JettyRequestReferencingFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.