Examples of EarlyEofExceptionMapper


Examples of io.dropwizard.errors.EarlyEofExceptionMapper

        this.lifecycleEnvironment = new LifecycleEnvironment();

        final DropwizardResourceConfig jerseyConfig = new DropwizardResourceConfig(metricRegistry);

        jerseyConfig.getSingletons().add(new EarlyEofExceptionMapper());

        this.jerseyServletContainer = new JerseyContainerHolder(new ServletContainer(jerseyConfig));
        this.jerseyEnvironment = new JerseyEnvironment(jerseyServletContainer, jerseyConfig);
    }
View Full Code Here

Examples of io.dropwizard.jersey.errors.EarlyEofExceptionMapper

            // create a subclass to pin it to Throwable
            register(new LoggingExceptionMapper<Throwable>() {
            });
            register(new ConstraintViolationExceptionMapper());
            register(new JsonProcessingExceptionMapper());
            register(new EarlyEofExceptionMapper());
            register(new ComponentLoggingListener(this));
        }
        register(new InstrumentedResourceMethodApplicationListener(metricRegistry));
        register(CacheControlledResponseFeature.class);
        register(OptionalMessageBodyWriter.class);
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.