From d3dc4d636045c9759d84ea9c7e5b32df63ec619b Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 9 Sep 2011 13:02:01 +0200 Subject: [PATCH 1/3] upgrade jersey-client to version 1.9 --- pom.xml | 8 ++++---- .../sonatype/spice/jersey/client/ahc/AhcHttpClient.java | 2 +- .../spice/jersey/client/ahc/AhcRequestWriter.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 168c11e..87e29df 100644 --- a/pom.xml +++ b/pom.xml @@ -59,12 +59,12 @@ com.sun.jersey jersey-client - 1.5 + 1.9 com.sun.jersey jersey-json - 1.5 + 1.9 javax.ws.rs @@ -103,8 +103,8 @@ com.sun.jersey - jersey-server - 1.5 + jersey-grizzly + 1.9 test diff --git a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java index 48d6a8d..73e25c6 100644 --- a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java +++ b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcHttpClient.java @@ -144,7 +144,7 @@ public void destroy(){ } @Override - protected void finalize(){ + protected void finalize() throws Throwable{ try { // Do not close the AHCClient. super.destroy(); diff --git a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java index 9684d54..8a9e9eb 100644 --- a/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java +++ b/src/main/java/org/sonatype/spice/jersey/client/ahc/AhcRequestWriter.java @@ -78,7 +78,7 @@ private void configureHeaders(MultivaluedMap metadata, RequestBu if (String.class.isAssignableFrom( o.getClass() )) { requestBuilder.addHeader(e.getKey(), o.toString()); } else { - requestBuilder.addHeader(e.getKey(), headerValueToString(o)); + requestBuilder.addHeader(e.getKey(), ClientRequest.getHeaderValue(o)); } } } From c5ef95b9c5a2a4ff9abb3b9779c699f237b880ee Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 29 Dec 2011 16:30:48 +0100 Subject: [PATCH 2/3] upgrade jersey-client to version 1.11 --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 87e29df..88bff22 100644 --- a/pom.xml +++ b/pom.xml @@ -59,12 +59,12 @@ com.sun.jersey jersey-client - 1.9 + 1.11 com.sun.jersey jersey-json - 1.9 + 1.11 javax.ws.rs @@ -104,7 +104,7 @@ com.sun.jersey jersey-grizzly - 1.9 + 1.11 test From c69dcfaab3f9bafef633c9f3011f3320f4bc1125 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Sun, 13 May 2012 19:13:20 +0200 Subject: [PATCH 3/3] upgrade jersey-client to version 1.12 --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 88bff22..f24c8c8 100644 --- a/pom.xml +++ b/pom.xml @@ -59,12 +59,12 @@ com.sun.jersey jersey-client - 1.11 + 1.12 com.sun.jersey jersey-json - 1.11 + 1.12 javax.ws.rs @@ -104,7 +104,7 @@ com.sun.jersey jersey-grizzly - 1.11 + 1.12 test