oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r962444 - /incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/OAuthRequest.java
Date Fri, 09 Jul 2010 08:33:40 GMT
Author: simonetripodi
Date: Fri Jul  9 08:33:40 2010
New Revision: 962444

URL: http://svn.apache.org/viewvc?rev=962444&view=rev
Log:
replaced the map with collections of already defined comparable objects that will simply the
sorting task according to OAuth sorting requirements

Modified:
    incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/OAuthRequest.java

Modified: incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/OAuthRequest.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/OAuthRequest.java?rev=962444&r1=962443&r2=962444&view=diff
==============================================================================
--- incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/OAuthRequest.java (original)
+++ incubator/amber/trunk/spec-api/src/main/java/org/apache/amber/OAuthRequest.java Fri Jul
 9 08:33:40 2010
@@ -17,7 +17,7 @@
 package org.apache.amber;
 
 import java.net.URL;
-import java.util.SortedMap;
+import java.util.Collection;
 
 /**
  * A convenient object representing the properties of an OAuth request to a
@@ -34,11 +34,27 @@ public interface OAuthRequest {
     HTTPMethod getHTTPMethod();
 
     void setHTTPMethod(HTTPMethod httpMethod);
-    
+
     String getSignatureBase();
 
     void setSignature(String signature);
 
-    SortedMap<OAuthParameter, String> getOAuthParameters();
-    
+    void addOAuthMessageParameter(OAuthMessageParameter parameter);
+
+    /**
+     * Returns the OAuth parameters will be included in the OAuth message.
+     *
+     * @return the OAuth parameters will be included in the OAuth message.
+     */
+    Collection<OAuthMessageParameter> getOAuthMessageParameters();
+
+    void addOAuthRequestParameter(OAuthRequestParameter parameter);
+
+    /**
+     * Returns the aux parameters client will included in the request.
+     *
+     * @return the aux parameters client will included in the request.
+     */
+    Collection<OAuthRequestParameter> getOAuthRequestParameters();
+
 }



Mime
View raw message