cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1380675 - /cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java
Date Tue, 04 Sep 2012 14:56:59 GMT
Author: sergeyb
Date: Tue Sep  4 14:56:59 2012
New Revision: 1380675

URL: http://svn.apache.org/viewvc?rev=1380675&view=rev
Log:
[CXF-4455] Completing the support for new exception classes, more updates

Modified:
    cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java

Modified: cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java?rev=1380675&r1=1380674&r2=1380675&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java
(original)
+++ cxf/trunk/rt/rs/security/oauth-parent/oauth/src/main/java/org/apache/cxf/rs/security/oauth/client/OAuthClientUtils.java
Tue Sep  4 14:56:59 2012
@@ -23,6 +23,7 @@ import java.util.HashMap;
 import java.util.Map;
 import java.util.UUID;
 
+import javax.ws.rs.WebApplicationException;
 import javax.ws.rs.core.UriBuilder;
 
 import net.oauth.OAuth;
@@ -31,7 +32,6 @@ import net.oauth.OAuthConsumer;
 import net.oauth.OAuthMessage;
 
 import org.apache.cxf.jaxrs.client.ClientWebApplicationException;
-import org.apache.cxf.jaxrs.client.ServerWebApplicationException;
 import org.apache.cxf.jaxrs.client.WebClient;
 import org.apache.cxf.jaxrs.ext.form.Form;
 import org.apache.cxf.rs.security.oauth.provider.OAuthServiceException;
@@ -187,7 +187,7 @@ public final class OAuthClientUtils {
             Form form = tokenService.post(null, Form.class);
             return new Token(form.getData().getFirst("oauth_token"),
                     form.getData().getFirst("oauth_token_secret"));
-        } catch (ServerWebApplicationException ex) {
+        } catch (WebApplicationException ex) {
             throw new OAuthServiceException(ex);
         }
     }



Mime
View raw message