public class

PicasawebService

extends MediaService
java.lang.Object
   ↳ com.google.gdata.client.Service
     ↳ com.google.gdata.client.GoogleService
       ↳ com.google.gdata.client.media.MediaService
         ↳ com.google.gdata.client.photos.PicasawebService

Class Overview

Extends the basic MediaService abstraction to define a service that is preconfigured for access to the Picasa Web Albums Data API.

Summary

Nested Classes
class PicasawebService.Versions GData versions supported by the Picasa Web Albums Data API. 
Constants
String PWA_SERVICE The abbreviated name of Picasa Web Albums Data API recognized by Google.
[Expand]
Inherited Constants
From class com.google.gdata.client.media.MediaService
Fields
public static final Version DEFAULT_VERSION Default GData version used by the Picasa Web Albums Data API.
[Expand]
Inherited Fields
From class com.google.gdata.client.media.MediaService
From class com.google.gdata.client.GoogleService
From class com.google.gdata.client.Service
Public Constructors
PicasawebService(String applicationName)
Constructs an instance connecting to the Picasa Web Albums Data API for an application with the name applicationName.
PicasawebService(String applicationName, Service.GDataRequestFactory requestFactory, AuthTokenFactory authTokenFactory)
Constructs an instance connecting to the Picasa Web Albums Data API for an application with the name applicationName and the given GDataRequestFactory and AuthTokenFactory.
PicasawebService(String applicationName, String protocol, String domainName)
Constructs an instance connecting to the Picasa Web Albums Data API with name serviceName for an application with the name applicationName.
Public Methods
String getServiceVersion()
Returns information about the service version.
static Version getVersion()
Returns the current GData version used by the Picasa Web Albums Data API.
[Expand]
Inherited Methods
From class com.google.gdata.client.media.MediaService
From class com.google.gdata.client.GoogleService
From class com.google.gdata.client.Service
From class java.lang.Object
From interface com.google.gdata.client.AuthTokenFactory.TokenListener

Constants

public static final String PWA_SERVICE

The abbreviated name of Picasa Web Albums Data API recognized by Google. The service name is used when requesting an authentication token.

Constant Value: "lh2"

Fields

public static final Version DEFAULT_VERSION

Default GData version used by the Picasa Web Albums Data API.

Public Constructors

public PicasawebService (String applicationName)

Constructs an instance connecting to the Picasa Web Albums Data API for an application with the name applicationName.

Parameters
applicationName The name of the client application accessing the service. Application names should preferably have the format [company-id]-[app-name]-[app-version]. The name will be used by the Google servers to monitor the source of authentication.

public PicasawebService (String applicationName, Service.GDataRequestFactory requestFactory, AuthTokenFactory authTokenFactory)

Constructs an instance connecting to the Picasa Web Albums Data API for an application with the name applicationName and the given GDataRequestFactory and AuthTokenFactory. Use this constructor to override the default factories.

Parameters
applicationName The name of the client application accessing the service. Application names should preferably have the format [company-id]-[app-name]-[app-version]. The name will be used by the Google servers to monitor the source of authentication.
requestFactory The request factory that generates gdata request objects
authTokenFactory The factory that creates auth tokens

public PicasawebService (String applicationName, String protocol, String domainName)

Constructs an instance connecting to the Picasa Web Albums Data API with name serviceName for an application with the name applicationName. The service will authenticate at the provided domainName.

Parameters
applicationName The name of the client application accessing the service. Application names should preferably have the format [company-id]-[app-name]-[app-version]. The name will be used by the Google servers to monitor the source of authentication.
protocol Name of protocol to use for authentication ("http"/"https")
domainName The name of the domain hosting the login handler

Public Methods

public String getServiceVersion ()

Returns information about the service version.

public static Version getVersion ()

Returns the current GData version used by the Picasa Web Albums Data API.