org.apache.shindig.gadgets.spec
Class OAuthService

java.lang.Object
  extended by org.apache.shindig.gadgets.spec.OAuthService

public class OAuthService
extends Object

Information about an OAuth service that a gadget wants to use. Instances are immutable.


Nested Class Summary
static class OAuthService.EndPoint
          Description of an OAuth request token or access token URL.
static class OAuthService.Location
          Location for OAuth parameters in requests to an OAuth request token, access token, or resource URL.
static class OAuthService.Method
          Method to use for requests to an OAuth request token or access token URL.
 
Constructor Summary
OAuthService(Element serviceElement, Uri base)
           
 
Method Summary
 OAuthService.EndPoint getAccessUrl()
          Represents /OAuth/Service/Access elements.
 Uri getAuthorizationUrl()
          Represents /OAuth/Service/Authorization elements.
 String getName()
          Represents /OAuth/Service@name
 OAuthService.EndPoint getRequestUrl()
          Represents /OAuth/Service/Request elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthService

public OAuthService(Element serviceElement,
                    Uri base)
             throws SpecParserException
Throws:
SpecParserException
Method Detail

getRequestUrl

public OAuthService.EndPoint getRequestUrl()
Represents /OAuth/Service/Request elements.


getAccessUrl

public OAuthService.EndPoint getAccessUrl()
Represents /OAuth/Service/Access elements.


getAuthorizationUrl

public Uri getAuthorizationUrl()
Represents /OAuth/Service/Authorization elements.


getName

public String getName()
Represents /OAuth/Service@name



Copyright © 2007-2012. All Rights Reserved.