public class FeedURLFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BASE_URL
URL of the server to connect to by default.
|
| Constructor and Description |
|---|
FeedURLFactory(String url)
Creates an URL factory targeted to a server.
|
| Modifier and Type | Method and Description |
|---|---|
URL |
getAttributesFeedURL()
Gets an URL for the list of the most used attributes
and their most used values.
|
URL |
getBaseURL()
Returns the URL used as a base for the generated URLs.
|
static FeedURLFactory |
getDefault()
Gets the default instance of this factory, targeted
to "http://www.google.com/base/".
|
URL |
getItemsBatchFeedURL()
Gets an URL for posting batch operations
to the customer feed.
|
URL |
getItemsEntryURL(String entryId)
Gets an URL for accessing an item.
|
URL |
getItemsFeedURL()
Gets an URL for accessing a customer feed, which allows users
to query, insert, update and delete their own items.
|
URL |
getItemTypesEntryURL(String locale,
String itemType)
Gets an URL for getting the item types Google suggest using
for a given itemtype for a given locale.
|
URL |
getItemTypesFeedURL(String locale)
Gets an URL for querying the item types Google suggest using
for a given locale.
|
URL |
getLocalesFeedURL()
Gets the URL of the list of all the supported locales.
|
URL |
getSnippetsBatchFeedURL()
Gets an URL for accessing a public batch feed, which allows users to
get a series of entries.
|
URL |
getSnippetsEntryURL(String id)
Gets an URL for accessing a snippet.
|
URL |
getSnippetsFeedURL()
Gets an URL for accessing a public feed, which allows users to perform
queries.
|
public static final String DEFAULT_BASE_URL
public FeedURLFactory(String url) throws MalformedURLException
getDefault() instead.url - an URL used as a base for the generated URLsMalformedURLExceptionpublic static FeedURLFactory getDefault()
public URL getBaseURL()
public URL getSnippetsFeedURL()
GoogleBaseQuerypublic URL getSnippetsBatchFeedURL()
getSnippetsFeedURL() in one HTTP request.public URL getSnippetsEntryURL(String id) throws MalformedURLException
id - the id of the snippetGoogleBaseServiceMalformedURLExceptiongetSnippetsFeedURL()public URL getItemsFeedURL()
GoogleBaseQuerypublic URL getItemsEntryURL(String entryId) throws MalformedURLException
entryId - GoogleBaseServiceMalformedURLExceptiongetItemsFeedURL()public URL getItemsBatchFeedURL()
com.google.gdata.client.Service#batch(java.net.URL,
com.google.gdata.data.BaseFeed)public URL getLocalesFeedURL()
public URL getItemTypesFeedURL(String locale) throws MalformedURLException
locale - a locale, for example "de_DE", "en_GB", "en_US"MalformedURLExceptionpublic URL getItemTypesEntryURL(String locale, String itemType) throws MalformedURLException
locale - a locale, for example "de_DE", "en_GB", "en_US"itemType - the item type to be analysedMalformedURLExceptionpublic URL getAttributesFeedURL()
GoogleBaseQueryCopyright © 2012. All Rights Reserved.