Package org.glassfish.jersey.server

Examples of org.glassfish.jersey.server.ApplicationHandler$FutureResponseWriter


        configure(resourceConfig);

        final AbstractBinder webComponentBinder = new WebComponentBinder(resourceConfig.getProperties());
        resourceConfig.register(webComponentBinder);

        this.appHandler = new ApplicationHandler(resourceConfig, webComponentBinder);

        this.asyncExtensionDelegate = getAsyncExtensionDelegate();
        this.forwardOn404 = webConfig.getConfigType().equals(WebConfig.ConfigType.FilterConfig)
                && resourceConfig.isProperty(ServletProperties.FILTER_FORWARD_ON_404);
        this.configSetStatusOverSendError = ServerProperties.getValue(resourceConfig.getProperties(),
View Full Code Here


    }

    @Override
    public void reload(final ResourceConfig configuration) {
        containerListener.onShutdown(this);
        appHandler = new ApplicationHandler(configuration.register(new JettyBinder()));
        containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);
        containerListener.onReload(this);
        containerListener.onStartup(this);
        cacheConfigSetStatusOverSendError();
    }
View Full Code Here

        containerListener.onShutdown(this);
        appHandler = null;
    }

    JettyHttpContainer(final Application application, final ServiceLocator parentLocator) {
        this.appHandler = new ApplicationHandler(application, new JettyBinder(), parentLocator);
        this.containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);
    }
View Full Code Here

     * Create a new Jetty HTTP container.
     *
     * @param application JAX-RS / Jersey application to be deployed on Jetty HTTP container.
     */
    JettyHttpContainer(final Application application) {
        this.appHandler = new ApplicationHandler(application, new JettyBinder());
        this.containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);

        cacheConfigSetStatusOverSendError();
    }
View Full Code Here

    }

    @Override
    public void reload(final ResourceConfig configuration) {
        containerListener.onShutdown(this);
        appHandler = new ApplicationHandler(configuration.register(new SimpleBinder()));
        containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);
        containerListener.onReload(this);
        containerListener.onStartup(this);
    }
View Full Code Here

     * Create a new Simple framework HTTP container.
     *
     * @param application JAX-RS / Jersey application to be deployed on Simple framework HTTP container.
     */
    SimpleContainer(final Application application, final ServiceLocator parentLocator) {
        this.appHandler = new ApplicationHandler(application, new SimpleBinder(), parentLocator);
        this.containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);
    }
View Full Code Here

     * Create a new Simple framework HTTP container.
     *
     * @param application JAX-RS / Jersey application to be deployed on Simple framework HTTP container.
     */
    SimpleContainer(final Application application) {
        this.appHandler = new ApplicationHandler(application, new SimpleBinder());
        this.containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);
    }
View Full Code Here

        }
        if (serverDisable != null) {
            resourceConfig.property(ServerProperties.JSON_PROCESSING_FEATURE_DISABLE, serverDisable);
        }

        final ApplicationHandler app = new ApplicationHandler(resourceConfig);

        final URI baseUri = URI.create("/");
        assertEquals(response, app.apply(new ContainerRequest(baseUri, baseUri, "GET", null, new MapPropertiesDelegate())).get()
                .getEntity());
    }
View Full Code Here

     * Create a new Grizzly HTTP container.
     *
     * @param application JAX-RS / Jersey application to be deployed on Grizzly HTTP container.
     */
    GrizzlyHttpContainer(final Application application) {
        this.appHandler = new ApplicationHandler(application, new GrizzlyBinder());
        this.containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);
        cacheConfigSetStatusOverSendError();
    }
View Full Code Here

     * @param application   JAX-RS / Jersey application to be deployed on Grizzly HTTP container.
     * @param parentLocator {@link org.glassfish.hk2.api.ServiceLocator} to becaome a parent of the locator used
     *                      in {@link org.glassfish.jersey.server.ApplicationHandler}
     */
    GrizzlyHttpContainer(final Application application, final ServiceLocator parentLocator) {
        this.appHandler = new ApplicationHandler(application, new GrizzlyBinder(), parentLocator);
        this.containerListener = ConfigHelper.getContainerLifecycleListener(appHandler);
        cacheConfigSetStatusOverSendError();
    }
View Full Code Here

TOP

Related Classes of org.glassfish.jersey.server.ApplicationHandler$FutureResponseWriter

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.