|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
The Service class represents an interface to access the GData service componentes of the GData-Server. It encapsulates all interactions with the GData client.
This class provides the base level common functionality required to access the GData components. It is also designed to act as a base class that can be extended for specific types of underlaying server components as different indexing or storage components.
It could also encapsulate caching mechanismn build on top of the storage to reduce load on the storage component
Method Summary | |
---|---|
void |
close()
will close the Service - service should not be used after this method has been called |
com.google.gdata.data.BaseEntry |
createEntry(GDataRequest request,
GDataResponse response)
Service method to create an entry in an already created and existing feed. |
com.google.gdata.data.BaseEntry |
deleteEntry(GDataRequest request,
GDataResponse response)
Service Method to delete an entry specified in the given FeedRequest. |
Date |
getEntryLastModified(String entryId,
String feedId)
Retruns the date of the last modification for the given entry id |
com.google.gdata.data.BaseFeed |
getFeed(GDataRequest request,
GDataResponse response)
Service method to retrieve a requested Feed. |
Date |
getFeedLastModified(String feedId)
Retruns the date of the last modification for the given feed id |
com.google.gdata.data.BaseEntry |
getSingleEntry(GDataRequest request,
GDataResponse response)
Service method to retrieve a requested entry. |
com.google.gdata.data.BaseEntry |
updateEntry(GDataRequest request,
GDataResponse response)
Service method to update an existing entry in a existing feed context. |
Method Detail |
---|
com.google.gdata.data.BaseEntry createEntry(GDataRequest request, GDataResponse response) throws ServiceException
FeedResponse
.
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
if the corresponding feed does not exist or the storage can
not be accessedcom.google.gdata.data.BaseEntry deleteEntry(GDataRequest request, GDataResponse response) throws ServiceException
FeedResponse
.
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
if the entry does not exist or the storage can not be
accessedcom.google.gdata.data.BaseEntry updateEntry(GDataRequest request, GDataResponse response) throws ServiceException
ServiceException
will be thrown if the version to update is outdated. The new entry will
be passed to the indexing component to make the version accessable via
get-queries.
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
if the corresponding feed does not exist, the storage can not
be accessed or the version to update is out of date.com.google.gdata.data.BaseFeed getFeed(GDataRequest request, GDataResponse response) throws ServiceException
FeedResponse
instance and can also be accessed
via the FeedResponse
object.
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
If the storage can not be accessed or the requested feed does
not exist.com.google.gdata.data.BaseEntry getSingleEntry(GDataRequest request, GDataResponse response) throws ServiceException
FeedResponse
instance and can also be accessed
via the FeedResponse
object.
request
- -
the current FeedRequestresponse
- -
the current FeedResponse
ServiceException
- -
If the storage can not be accessed or the requested entry does
not exist.void close()
Date getFeedLastModified(String feedId) throws ServiceException
feedId
- - the id of the feed
ServiceException
- - if the storage can not be accessedDate getEntryLastModified(String entryId, String feedId) throws ServiceException
entryId
- - the id of the entryfeedId
- - the feed id this entry belongs to
ServiceException
- - if the storage can not be accessed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |