use of org.jboss.resteasy.client.jaxrs.cache.BrowserCacheFeature in project muikku by otavanopisto.
the class ClientPool method buildClient.
private Client buildClient() {
// TODO: trust all only on development environment
ClientBuilder clientBuilder = ClientBuilder.newBuilder();
if ("development".equals(System.getProperties().getProperty("system.environment"))) {
clientBuilder = trustSelfSignedCerts(clientBuilder);
}
ClientBuilder builder = clientBuilder.register(new JacksonConfigurator()).register(new BrowserCacheFeature());
return builder.build();
}
Aggregations