oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r963294 - in /incubator/amber/trunk: signature-api/src/test/java/org/apache/amber/signature/FakeOAuthRequest.java spec-api/src/main/java/org/apache/amber/OAuthRequest.java
Date Mon, 12 Jul 2010 14:44:52 GMT
Author: simonetripodi
Date: Mon Jul 12 14:44:52 2010
New Revision: 963294

URL: http://svn.apache.org/viewvc?rev=963294&view=rev
Log:
added the parameter location (header|get|body) in the Request

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

Modified: incubator/amber/trunk/signature-api/src/test/java/org/apache/amber/signature/FakeOAuthRequest.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/signature-api/src/test/java/org/apache/amber/signature/FakeOAuthRequest.java?rev=963294&r1=963293&r2=963294&view=diff
==============================================================================
--- incubator/amber/trunk/signature-api/src/test/java/org/apache/amber/signature/FakeOAuthRequest.java
(original)
+++ incubator/amber/trunk/signature-api/src/test/java/org/apache/amber/signature/FakeOAuthRequest.java
Mon Jul 12 14:44:52 2010
@@ -24,6 +24,7 @@ import java.util.TreeSet;
 import org.apache.amber.HTTPMethod;
 import org.apache.amber.OAuthMessageParameter;
 import org.apache.amber.OAuthParameter;
+import org.apache.amber.OAuthParameterLocation;
 import org.apache.amber.OAuthRequest;
 import org.apache.amber.OAuthRequestParameter;
 
@@ -37,6 +38,8 @@ final class FakeOAuthRequest implements 
 
     private URI requestURL;
 
+    private OAuthParameterLocation parameterLocation;
+
     private final SortedSet<OAuthMessageParameter> messageParameters = new TreeSet<OAuthMessageParameter>();
 
     private final SortedSet<OAuthRequestParameter> requestParameters = new  TreeSet<OAuthRequestParameter>();
@@ -57,6 +60,14 @@ final class FakeOAuthRequest implements 
         this.httpMethod = httpMethod;
     }
 
+    public OAuthParameterLocation getParameterLocation() {
+        return this.parameterLocation;
+    }
+
+    public void setParameterLocation(OAuthParameterLocation parameterLocation) {
+        this.parameterLocation = parameterLocation;
+    }
+
     public Collection<OAuthMessageParameter> getOAuthMessageParameters() {
         return this.messageParameters;
     }

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=963294&r1=963293&r2=963294&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 Mon Jul
12 14:44:52 2010
@@ -35,6 +35,10 @@ public interface OAuthRequest {
 
     void setHTTPMethod(HTTPMethod httpMethod);
 
+    OAuthParameterLocation getParameterLocation();
+
+    void setParameterLocation(OAuthParameterLocation parameterLocation);
+
     /**
      * @param parameter
      */



Mime
View raw message