Examples of ServletContainer


Examples of org.glassfish.jersey.servlet.ServletContainer

      JsonObject configuration = parseJsonConfig(options.config);
      cloudAdapter.configure(configuration);
    }

    // build server
    ServletContainer restApiServlet = new ServletContainer(
        ResourceConfig.forApplication(application));
    ServletDefinition servlet = new ServletDefinition.Builder().servlet(
        restApiServlet).build();
    Server server = ServletServerBuilder.create()
        .httpsPort(options.httpsPort)
View Full Code Here

Examples of org.glassfish.jersey.servlet.ServletContainer

    errorHandler.setShowStacks(true);
    errorHandler.setShowMessageInTitle(true);
    context.setErrorHandler(errorHandler);
    context.setContextPath("/");
    embeddedJetty.setHandler(context);
    ServletHolder h = new ServletHolder(new ServletContainer(new DrillRestServer(manager)));
//    h.setInitParameter(ServerProperties.PROVIDER_PACKAGES, "org.apache.drill.exec.server");
    h.setInitOrder(1);
    context.addServlet(h, "/*");
    context.addServlet(new ServletHolder(new MetricsServlet(this.context.getMetrics())), "/status/metrics");
    context.addServlet(new ServletHolder(new ThreadDumpServlet()), "/status/threads");
View Full Code Here

Examples of org.jboss.portal.web.ServletContainer

   {
      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      PortletApplication portletApplication = container.getPortletApplication();
      ServerContext reqCtx = invocation.getServerContext();
      ServletContext targetCtx = portletApplication.getContext().getServletContext();
      ServletContainer servletContainer = servletContainerFactory.getServletContainer();
      try
      {
         return (PortletInvocationResponse)reqCtx.dispatch(servletContainer, targetCtx, callback, invocation);
      }
      catch (Exception e)
View Full Code Here

Examples of org.richfaces.test.staging.ServletContainer

public class ServletTest {

  @Test
  public void testIsApplicable() {
    StaticServlet staticServlet = new StaticServlet();
    RequestChain servlet = new ServletContainer("/foo/*",staticServlet);
    assertTrue(servlet.isApplicable("/foo/bar.jsf"));
    assertFalse(servlet.isApplicable("/foz/bar.jsf"));
    assertFalse(servlet.isApplicable("bar"));
    servlet = new ServletContainer("*.jsf",staticServlet);
    assertTrue(servlet.isApplicable("/foo/bar.jsf"));
    assertFalse(servlet.isApplicable("bar"));
    try {
      servlet = new ServletContainer(".jsf",staticServlet);
    } catch (IllegalArgumentException e) {
      return;
    }
    assertFalse(true);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.