com.google.gdata.client.photos
Class PicasawebService
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
- All Implemented Interfaces:
- AuthTokenFactory.TokenListener
public class PicasawebService
- extends MediaService
Extends the basic MediaService
abstraction to define a service that
is preconfigured for access to the Google Photos data API.
Field Summary |
static java.lang.String |
PWA_SERVICE
The abbreviated name of Google Photos recognized by Google. |
Constructor Summary |
PicasawebService(java.lang.String applicationName)
Constructs an instance connecting to the Google Photos service for an
application with the name applicationName . |
PicasawebService(java.lang.String applicationName,
Service.GDataRequestFactory requestFactory,
AuthTokenFactory authTokenFactory)
Constructs an instance connecting to the Google Photos service 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 Google Photos service with name
serviceName for an application with the name applicationName . |
Method Summary |
java.lang.String |
getServiceVersion()
Returns information about the service version. |
Methods inherited from class com.google.gdata.client.GoogleService |
addCookie, 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, setUserToken, tokenChanged, update |
Methods inherited from class com.google.gdata.client.Service |
batch, closeSource, createBatchRequest, createDeleteRequest, createEntryRequest, createFeedRequest, createFeedRequest, createInsertRequest, createUpdateRequest, delete, delete, endVersionScope, getContentType, getEntry, getExtensionProfile, getFeed, getFeed, getProtocolVersion, getRequestFactory, getStreamFromLink, getVersion, initServiceVersion, introspect, parseEntry, query, query, query, setAcceptLanguage, setConnectTimeout, setContentType, setExtensionProfile, setProtocolVersion, setReadTimeout, setRequestFactory, setTimeouts, startVersionScope, update, useSsl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PWA_SERVICE
public static final java.lang.String PWA_SERVICE
- The abbreviated name of Google Photos recognized by Google. The service
name is used when requesting an authentication token.
- See Also:
- Constant Field Values
PicasawebService
public PicasawebService(java.lang.String applicationName)
- Constructs an instance connecting to the Google Photos service 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.
PicasawebService
public PicasawebService(java.lang.String applicationName,
Service.GDataRequestFactory requestFactory,
AuthTokenFactory authTokenFactory)
- Constructs an instance connecting to the Google Photos service 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
objectsauthTokenFactory
- the factory that creates auth tokens
PicasawebService
public PicasawebService(java.lang.String applicationName,
java.lang.String protocol,
java.lang.String domainName)
- Constructs an instance connecting to the Google Photos service 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
getServiceVersion
public java.lang.String getServiceVersion()
- Description copied from class:
Service
- Returns information about the service version.
- Overrides:
getServiceVersion
in class Service