Package org.jboss.resteasy.plugins.server.undertow

Examples of org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer


   }

   @BeforeClass
   public static void init() throws Exception
   {
      server = new UndertowJaxrsServer().start();
   }
View Full Code Here


   }

   @BeforeClass
   public static void init() throws Exception
   {
      server = new UndertowJaxrsServer().start();
   }
View Full Code Here

   }

   @BeforeClass
   public static void init() throws Exception
   {
      server = new UndertowJaxrsServer().start();
   }
View Full Code Here

        Builder builder = Undertow.builder()
                .addHttpListener(config.getPort(), config.getHost())
                .setWorkerThreads(config.getWorkerThreads())
                .setIoThreads(config.getWorkerThreads() / 8);

        server = new UndertowJaxrsServer().start(builder);

        DeploymentInfo di = server.undertowDeployment(deployment, "");
        di.setClassLoader(getClass().getClassLoader());
        di.setContextPath("/auth");
        di.setDeploymentName("Keycloak");
View Full Code Here

    protected void deployPerfTools() {
        ResteasyDeployment deployment = new ResteasyDeployment();
        deployment.setApplicationClass(KeycloakToolsApplication.class.getName());

        UndertowJaxrsServer server = keycloakServer.getServer();

        DeploymentInfo di = server.undertowDeployment(deployment, "");
        di.setClassLoader(KeycloakTestApplication.class.getClassLoader());
        di.setContextPath("/keycloak-tools");
        di.setDeploymentName("KeycloakTools");

        FilterInfo filter = Servlets.filter("SessionFilter", KeycloakSessionServletFilter.class);
        di.addFilter(filter);
        di.addFilterUrlMapping("SessionFilter", "/perf/*", DispatcherType.REQUEST);

        FilterInfo connectionFilter = Servlets.filter("ClientConnectionFilter", ClientConnectionFilter.class);
        di.addFilter(connectionFilter);
        di.addFilterUrlMapping("ClientConnectionFilter", "/perf/*", DispatcherType.REQUEST);

        server.deploy(di);

        System.out.println("Keycloak tools deployed");
    }
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer

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.