Package org.glassfish.grizzly.servlet

Examples of org.glassfish.grizzly.servlet.WebappContext


        // servlet that services all url from "main" by simply sending
        // main.html back to the calling client.  main.html handles its own
        // state given the uri
        if (hasAnythingChanged()) {
            if (enableDogHouse) {
                this.wacDogHouse = new WebappContext("doghouse", "");
                final ServletRegistration sgDogHouse = wacDogHouse.addServlet("doghouse", new DogHouseServlet());
                sgDogHouse.addMapping("/doghouse/*");
                sgDogHouse.setInitParameter("com.tinkerpop.rexster.config.rexsterApiBaseUri", baseUri + ":" + rexsterServerPort.toString());

                final ServletRegistration sgDogHouseEval = wacDogHouse.addServlet("doghouse-evaluator", new EvaluatorServlet(application));
View Full Code Here


    private void deployMetricsAdmin(final RexsterApplication application) {
        if (hasAnythingChanged()) {
            if (this.enableHttpReporter) {
                // deploys the metrics servlet into rexster
                wacMetrics = new WebappContext("metrics", "");
                wacMetrics.setAttribute("com.codahale.metrics.servlets.MetricsServlet.registry", application.getMetricRegistry());
                wacMetrics.addContextInitParameter("com.codahale.metrics.servlets.MetricsServlet.rateUnit", this.convertRateTo);
                wacMetrics.addContextInitParameter("com.codahale.metrics.servlets.MetricsServlet.durationUnit", this.convertDurationTo);

                final ServletRegistration sgMetrics = wacMetrics.addServlet("metrics", new MetricsServlet());
View Full Code Here

TOP

Related Classes of org.glassfish.grizzly.servlet.WebappContext

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.