Review Board 1.7.22


SHINDIG-1622 Add support for optional "method" parameter in the LinkSpec implementation

Review Request #1928 - Created Sept. 16, 2011 and submitted

Henry Saputra
trunk
SHINDIG-1622
Reviewers
shindig
shindig
The <Link> representation LinkSpec class missing "method" optional property as defined in the OpenSocial specs: http://opensocial-resources.googlecode.com/svn/spec/2.0/Core-Gadget.xml#LifeCycleEvents
Updated the unit test for LinkSpec and pass.
trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/GadgetsHandlerApi.java
Revision 1171202 New Change
[20] 172 lines
[+20] [+] public boolean getRequired();
173
  }
173
  }
174

    
   
174

   
175
  public interface LinkSpec {
175
  public interface LinkSpec {
176
    public String getRel();
176
    public String getRel();
177
    public Uri getHref();
177
    public Uri getHref();

    
   
178
    public String getMethod();
178
  }
179
  }
179

    
   
180

   
180
  public interface OAuthSpec {
181
  public interface OAuthSpec {
181
	  public Map<String, OAuthService> getServices();
182
	  public Map<String, OAuthService> getServices();
182
  }
183
  }
[+20] [20] 134 lines
trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/LinkSpec.java
Revision 1171202 New Change
 
trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/spec/LinkSpecTest.java
Revision 1171202 New Change
 
  1. trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/GadgetsHandlerApi.java: Loading...
  2. trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/LinkSpec.java: Loading...
  3. trunk/java/gadgets/src/test/java/org/apache/shindig/gadgets/spec/LinkSpecTest.java: Loading...