use of org.glassfish.jersey.server.ResourceConfig in project jersey by jersey.
the class NonJaxRsBeanJaxRsInjectionTest method startGrizzlyContainer.
private void startGrizzlyContainer() throws IOException {
final ResourceConfig firstConfig = ResourceConfig.forApplicationClass(MainApplication.class);
final ResourceConfig secondConfig = ResourceConfig.forApplicationClass(SecondaryApplication.class);
httpServer = GrizzlyHttpServerFactory.createHttpServer(MAIN_APP_URI, firstConfig, false);
final HttpHandler secondHandler = createGrizzlyContainer(secondConfig);
httpServer.getServerConfiguration().addHttpHandler(secondHandler, SECONDARY_URI);
httpServer.start();
}
use of org.glassfish.jersey.server.ResourceConfig in project jersey by jersey.
the class CombinedTest method startGrizzlyContainer.
private void startGrizzlyContainer() throws IOException {
final ResourceConfig cdiConfig = ResourceConfig.forApplicationClass(CdiApplication.class);
final ResourceConfig hk2Config = ResourceConfig.forApplicationClass(Hk2Application.class);
cdiServer = GrizzlyHttpServerFactory.createHttpServer(BASE_CDI_URI, cdiConfig, false);
final HttpHandler hk2Handler = createGrizzlyContainer(hk2Config);
cdiServer.getServerConfiguration().addHttpHandler(hk2Handler, HK2_URI);
cdiServer.start();
}
use of org.glassfish.jersey.server.ResourceConfig in project jersey by jersey.
the class ErrorTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(ErrorResource.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
return config;
}
use of org.glassfish.jersey.server.ResourceConfig in project jersey by jersey.
the class FollowRedirectsTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(RedirectResource.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
return config;
}
use of org.glassfish.jersey.server.ResourceConfig in project jersey by jersey.
the class HelloWorldTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(HelloWorldResource.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
return config;
}
Aggregations