public class PicasawebService extends MediaService
MediaService abstraction to define a service that
is preconfigured for access to the Picasa Web Albums Data API.| Modifier and Type | Class and Description |
|---|---|
static class |
PicasawebService.Versions
GData versions supported by the Picasa Web Albums Data API.
|
GoogleService.AccountDeletedException, GoogleService.AccountDisabledException, GoogleService.CaptchaRequiredException, GoogleService.InvalidCredentialsException, GoogleService.NotVerifiedException, GoogleService.ServiceUnavailableException, GoogleService.SessionExpiredException, GoogleService.TermsNotAgreedExceptionService.ClientInputProperties, Service.ClientOutputProperties, Service.ClientStreamProperties, Service.GDataRequest, Service.GDataRequestFactory| Modifier and Type | Field and Description |
|---|---|
static Version |
DEFAULT_VERSION
Default GData version used by the Picasa Web Albums Data API.
|
static java.lang.String |
PWA_SERVICE
The abbreviated name of Picasa Web Albums Data API recognized by Google.
|
DEFAULT_CHUNKED_BUFFER_SIZE, NO_CHUNKED_MEDIA_REQUESTconnectTimeout, extProfile, metadataRegistry, requestFactory| Constructor and Description |
|---|
PicasawebService(java.lang.String applicationName)
Constructs an instance connecting to the Picasa Web Albums Data API for an
application with the name
applicationName. |
PicasawebService(java.lang.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(java.lang.String applicationName,
java.lang.String protocol,
java.lang.String domainName)
Constructs an instance connecting to the Picasa Web Albums Data API with
name
serviceName for an application with the name applicationName. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getServiceVersion()
Returns information about the service version.
|
static Version |
getVersion()
Returns the current GData version used by the Picasa Web Albums Data API.
|
getDefaultAltRegistry, getMedia, getMedia, insert, insert, setChunkedMediaUpload, update, updateMedia, updateMediaaddCookie, batch, createRequest, createRequest, delete, delete, getAuthToken, getAuthTokenFactory, getCookieManager, getCookies, getEntry, getEntry, getFeed, getFeed, getFeed, getFeed, handleRedirectException, handlesCookies, handleSessionExpiredException, makePostRequest, setAuthSubToken, setAuthSubToken, setAuthTokenFactory, setCookieManager, setHandlesCookies, setOAuthCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserToken, tokenChangedclassOf, createBatchRequest, createDeleteRequest, createEntryRequest, createFeedRequest, createFeedRequest, createInsertRequest, createLinkQueryRequest, createPatchRequest, createUpdateRequest, delete, delete, endVersionScope, getAltRegistry, getContentType, getEntry, getExtensionProfile, getFeed, getFeed, getMetadataRegistry, getProtocolVersion, getRequestFactory, getSchema, getStreamFromLink, getStrictValidation, initServiceVersion, introspect, parseResponseData, parseResponseData, patch, patch, query, query, query, setAcceptLanguage, setAltRegistry, setConnectTimeout, setContentType, setExtensionProfile, setHeader, setOAuthProxyHeaders, setPrivateHeader, setProtocolVersion, setReadTimeout, setRequestFactory, setStrictValidation, setTimeouts, startVersionScope, update, useSsl, writeRequestData, writeRequestDatapublic static final java.lang.String PWA_SERVICE
public static final Version DEFAULT_VERSION
public PicasawebService(java.lang.String applicationName)
applicationName.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(java.lang.String applicationName,
Service.GDataRequestFactory requestFactory,
AuthTokenFactory authTokenFactory)
applicationName and the given GDataRequestFactory and AuthTokenFactory. Use this constructor to
override the default factories.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
objectsauthTokenFactory - the factory that creates auth tokenspublic PicasawebService(java.lang.String applicationName,
java.lang.String protocol,
java.lang.String domainName)
serviceName for an application with the name applicationName. The service will authenticate at the provided domainName.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 handlerpublic java.lang.String getServiceVersion()
ServicegetServiceVersion in class Servicepublic static Version getVersion()