|
<F extends IFeed>
F
|
batch(URL feedUrl, F inputFeed)
Executes several operations (insert, update or delete) on the entries that
are part of the input IFeed.
|
|
<T>
Class<T>
|
classOf(T object)
|
|
Service.GDataRequest
|
createBatchRequest(URL feedUrl)
Creates a new GDataRequest that can be used to execute several
insert/update/delete operations in one request by writing a feed into the
request stream to read a feed containing the result of the batch operations
from the response stream.
|
|
Service.GDataRequest
|
createDeleteRequest(URL entryUrl)
Creates a new GDataRequest that can be used to delete an Atom entry.
|
|
Service.GDataRequest
|
createEntryRequest(URL entryUrl)
Returns a GDataRequest instance that can be used to access an entry's
contents as a stream, given the URL of the entry.
|
|
Service.GDataRequest
|
createFeedRequest(URL feedUrl)
Executes a GData feed request against the target service and returns the
resulting feed results via an input stream.
|
|
Service.GDataRequest
|
createFeedRequest(Query query)
Executes a GData query request against the target service and returns the
resulting feed results via an input stream.
|
|
Service.GDataRequest
|
createInsertRequest(URL feedUrl)
Creates a new GDataRequest that can be used to insert a new entry into a
feed using the request stream and to read the resulting entry content from
the response stream.
|
|
Service.GDataRequest
|
createLinkQueryRequest(ILink link)
Returns a query (GET) request that targets the provided link.
|
|
Service.GDataRequest
|
createPatchRequest(URL entryUrl)
Creates a new GDataRequest that can be used to update an existing Atom
entry.
|
|
Service.GDataRequest
|
createRequest(Service.GDataRequest.RequestType type, URL requestUrl, ContentType inputType)
Creates a new GDataRequest for use by the service.
|
|
Service.GDataRequest
|
createRequest(Query query, ContentType inputType)
Creates a new GDataRequest for querying the service.
|
|
Service.GDataRequest
|
createUpdateRequest(URL entryUrl)
Creates a new GDataRequest that can be used to update an existing Atom
entry.
|
|
void
|
delete(URL resourceUrl, String etag)
Deletes an existing entry (and associated media content, if any) using the
specified edit URL.
|
|
void
|
delete(URL resourceUrl)
Deletes an existing entry (and associated media content, if any) using the
specified edit URL.
|
|
void
|
delete(URI resourceUri, String etag)
Deletes an existing entry (and associated media content, if any) using the
specified edit URI.
|
|
void
|
delete(URI resourceUri)
Deletes an existing entry (and associated media content, if any) using the
specified edit URI.
|
|
void
|
endVersionScope()
|
|
AltRegistry
|
getAltRegistry()
Returns the alternate registration registry that describes representations
that may be parsed from or generated to the remote GData service.
|
|
ContentType
|
getContentType()
Returns the default ContentType for data associated with this GData
service.
|
|
static
AltRegistry
|
getDefaultAltRegistry()
Returns an AltRegistry instance that is configured with the
default parser/generator configuration for a media service.
|
|
<E extends IEntry>
E
|
getEntry(URL entryUrl, Class<E> entryClass, String etag)
Returns an Atom entry instance given the URL of the entry, if its current
entity tag is different than the provided value.
|
|
<E extends IEntry>
E
|
getEntry(URL entryUrl, Class<E> entryClass)
Returns an Atom entry instance, given the URL of the entry.
|
|
<E extends IEntry>
E
|
getEntry(URL entryUrl, Class<E> entryClass, DateTime ifModifiedSince)
Returns an Atom entry instance, given the URL of the entry and an
if-modified-since date.
|
|
ExtensionProfile
|
getExtensionProfile()
Returns the ExtensionProfile that defines any expected extensions
to the base RSS/Atom content model.
|
|
<F extends IFeed>
F
|
getFeed(URL feedUrl, Class<F> feedClass)
Returns the Feed associated with a particular feed URL.
|
|
<F extends IFeed>
F
|
getFeed(URL feedUrl, Class<F> feedClass, DateTime ifModifiedSince)
Returns the Feed associated with a particular feed URL, if it's been
modified since the specified date.
|
|
<F extends IFeed>
F
|
getFeed(Query query, Class<F> feedClass, DateTime ifModifiedSince)
Returns the Feed resulting from executing a query, if it's been modified
since the specified date.
|
|
<F extends IFeed>
F
|
getFeed(URL feedUrl, Class<F> feedClass, String etag)
Returns the Feed associated with a particular feed URL if the entity tag
associated with it has changed.
|
|
<F extends IFeed>
F
|
getFeed(Query query, Class<F> feedClass)
Returns the feed resulting from execution of a query.
|
|
<F extends IFeed>
F
|
getFeed(Query query, Class<F> feedClass, String etag)
Returns the Feed resulting from query execution, if if the entity tag
associated with it has changed.
|
|
MetadataRegistry
|
getMetadataRegistry()
|
|
Version
|
getProtocolVersion()
Returns the service protocol version that will be used for requests
generated by this service.
|
|
Service.GDataRequestFactory
|
getRequestFactory()
Returns the GDataRequestFactory currently associated with the service.
|
|
Schema
|
getSchema()
Returns the Schema that contains the metadata about
element types parsed or generated by this service.
|
|
String
|
getServiceVersion()
Returns information about the service version.
|
|
InputStream
|
getStreamFromLink(ILink link)
|
|
boolean
|
getStrictValidation()
Returns true if strict validation is enabled for
this service.
|
|
static
Version
|
getVersion()
Returns the current Version of the GData core protocol.
|
|
static
Version
|
initServiceVersion(Class<? extends Service> serviceClass, Version defaultVersion)
Initializes the version information for a specific service type.
|
|
<E extends IEntry>
E
|
insert(URL feedUrl, E entry)
Inserts a new IEntry into a feed associated
with the target service.
|
|
<S extends IServiceDocument>
S
|
introspect(URL feedUrl, Class<S> serviceClass)
Returns the Atom introspection Service Document associated with a
particular feed URL.
|
|
<E>
E
|
parseResponseData(Service.GDataRequest req, Class<E> resultType)
Parses the response stream for a request based upon request properties and
an expected result type.
|
|
<E>
E
|
parseResponseData(ParseSource source, ContentType responseType, Class<E> resultType)
Parses the response stream for a request based upon response content type
and an expected result type.
|
|
<E extends IEntry>
E
|
patch(URL entryUrl, String fields, E entry)
Patches an existing IEntry by removing a set of selected fields and
then merging a partial entry representation into the resource at the
specified entry edit URL.
|
|
<E extends IEntry>
E
|
patch(URL entryUrl, String fields, E entry, String etag)
Patches an existing IEntry by removing a set of selected fields and
then merging a partial entry representation into the resource at the
specified entry edit URL.
|
|
<F extends IFeed>
F
|
query(Query query, Class<F> feedClass, String etag)
Executes a GData query against the target service and returns the
IFeed containing entries that match the query result if the etag
for the target feed does not match the provided value.
|
|
<F extends IFeed>
F
|
query(Query query, Class<F> feedClass, DateTime ifModifiedSince)
Executes a GData query against the target service and returns the
IFeed containing entries that match the query result, if it's been
modified since the specified date.
|
|
<F extends IFeed>
F
|
query(Query query, Class<F> feedClass)
Executes a GData query against the target service and returns the
IFeed containing entries that match the query result.
|
|
void
|
setAcceptLanguage(String acceptedLanguages)
Defines the languages accepted by the application.
|
|
void
|
setAltRegistry(AltRegistry altRegistry)
|
|
void
|
setConnectTimeout(int timeout)
Sets the default wait timeout (in milliseconds) for a connection to the
remote GData service.
|
|
void
|
setContentType(ContentType contentType)
Sets the default ContentType for writing data to the GData service.
|
|
void
|
setExtensionProfile(ExtensionProfile v)
Sets the ExtensionProfile that defines any expected extensions to
the base RSS/Atom content model.
|
|
void
|
setHeader(String header, String value)
Set a header that will be included in all requests.
|
|
void
|
setOAuthProxyHeaders(Map<String, String> headers)
Adds OAuth Proxy-related headers to the request.
|
|
void
|
setPrivateHeader(String header, String value)
Set a header that will be included in all requests and do not log the
value.
|
|
void
|
setProtocolVersion(Version v)
Sets the service protocol version that will be used for requests associated
with this service.
|
|
void
|
setReadTimeout(int timeout)
Sets the default wait timeout (in milliseconds) for a response from the
remote GData service.
|
|
void
|
setRequestFactory(Service.GDataRequestFactory requestFactory)
Sets the GDataRequestFactory currently associated with the service.
|
|
void
|
setStrictValidation(boolean strictValidation)
Enables or disables strict validation.
|
|
void
|
setTimeouts(Service.GDataRequest request)
Sets timeout value for GDataRequest.
|
|
void
|
startVersionScope()
|
|
<E extends IEntry>
E
|
update(URL entryUrl, E entry)
Updates an existing IEntry by writing it to
the specified entry edit URL.
|
|
<E extends IEntry>
E
|
update(URL entryUrl, E entry, String etag)
Updates an existing IEntry by writing it to the specified entry
edit URL.
|
|
void
|
useSsl()
Sets the HttpGDataRequest.Factory associate with the service
to use secure connections.
|
|
void
|
writeRequestData(Service.GDataRequest req, Service.ClientOutputProperties outProps, Object source)
Writes the request body to the target service based upon requested
output properties and the source object.
|
|
void
|
writeRequestData(Service.GDataRequest req, Object source)
Writes the request body to the target service based upon the attributes of
the request and the source object.
|