Return-Path: Delivered-To: apmail-incubator-amber-commits-archive@minotaur.apache.org Received: (qmail 62652 invoked from network); 12 Jul 2010 14:46:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Jul 2010 14:46:18 -0000 Received: (qmail 53292 invoked by uid 500); 12 Jul 2010 14:46:18 -0000 Delivered-To: apmail-incubator-amber-commits-archive@incubator.apache.org Received: (qmail 53272 invoked by uid 500); 12 Jul 2010 14:46:18 -0000 Mailing-List: contact amber-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: amber-dev@incubator.apache.org Delivered-To: mailing list amber-commits@incubator.apache.org Received: (qmail 53265 invoked by uid 99); 12 Jul 2010 14:46:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 14:46:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jul 2010 14:46:15 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C866323889B3; Mon, 12 Jul 2010 14:44:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: amber-commits@incubator.apache.org From: simonetripodi@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100712144452.C866323889B3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 messageParameters = new TreeSet(); private final SortedSet requestParameters = new TreeSet(); @@ -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 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 */