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 GZIPContentEncodingTest method testPostChunked.
@Test
public void testPostChunked() {
ClientConfig config = new ClientConfig();
config.property(ClientProperties.CHUNKED_ENCODING_SIZE, 1024);
config.connectorProvider(new JettyConnectorProvider());
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
Client client = ClientBuilder.newClient(config);
WebTarget r = client.target(getBaseUri());
byte[] content = new byte[1024 * 1024];
assertTrue(Arrays.equals(content, r.request().post(Entity.entity(content, MediaType.APPLICATION_OCTET_STREAM_TYPE)).readEntity(byte[].class)));
Response cr = r.request().post(Entity.text("POST"));
assertTrue(cr.hasEntity());
cr.close();
client.close();
}
use of org.glassfish.jersey.logging.LoggingFeature in project jersey by jersey.
the class GZIPContentEncodingTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(Resource.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 ManagedClientTest method configure.
@Override
protected Application configure() {
ResourceConfig config = new ResourceConfig(PublicResource.class, InternalResource.class, CustomHeaderFeature.class).property(ClientA.class.getName() + ".baseUri", this.getBaseUri().toString() + "internal");
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 AsyncTest method configureClient.
@Override
protected void configureClient(final ClientConfig config) {
config.register(new LoggingFeature(LOGGER, LoggingFeature.Verbosity.PAYLOAD_ANY));
config.connectorProvider(new NettyConnectorProvider());
}
Aggregations