use of org.glassfish.jersey.logging.LoggingFeature in project jersey by jersey.
the class AuthFilterTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(AuthTest.AuthResource.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
return config;
}
use of org.glassfish.jersey.logging.LoggingFeature in project jersey by jersey.
the class NoEntityTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(HttpMethodResource.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
return config;
}
use of org.glassfish.jersey.logging.LoggingFeature in project jersey by jersey.
the class TraceSupportTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(TracingResource.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
final Resource.Builder resourceBuilder = Resource.builder(ROOT_PATH_PROGRAMMATIC);
resourceBuilder.addMethod(TRACE.NAME).handledBy(new Inflector<ContainerRequestContext, Response>() {
@Override
public Response apply(ContainerRequestContext request) {
if (request == null) {
return Response.noContent().build();
} else {
return Response.ok(stringify((ContainerRequest) request), MediaType.TEXT_PLAIN).build();
}
}
});
return config.registerResources(resourceBuilder.build());
}
use of org.glassfish.jersey.logging.LoggingFeature in project jersey by jersey.
the class CookieTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(CookieResource.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
return config;
}
use of org.glassfish.jersey.logging.LoggingFeature in project jersey by jersey.
the class EntityTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(EntityResource.class, JacksonFeature.class);
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
return config;
}
Aggregations