public class FeedURLFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_URL
URL of the server to connect to by default.
|
Constructor and Description |
---|
FeedURLFactory(java.lang.String url)
Creates an URL factory targeted to a server.
|
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getAttributesFeedURL()
Gets an URL for the list of the most used attributes
and their most used values.
|
java.net.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/".
|
java.net.URL |
getItemsBatchFeedURL()
Gets an URL for posting batch operations
to the customer feed.
|
java.net.URL |
getItemsEntryURL(java.lang.String entryId)
Gets an URL for accessing an item.
|
java.net.URL |
getItemsFeedURL()
Gets an URL for accessing a customer feed, which allows users
to query, insert, update and delete their own items.
|
java.net.URL |
getItemTypesEntryURL(java.lang.String locale,
java.lang.String itemType)
Gets an URL for getting the item types Google suggest using
for a given itemtype for a given locale.
|
java.net.URL |
getItemTypesFeedURL(java.lang.String locale)
Gets an URL for querying the item types Google suggest using
for a given locale.
|
java.net.URL |
getLocalesFeedURL()
Gets the URL of the list of all the supported locales.
|
java.net.URL |
getSnippetsBatchFeedURL()
Gets an URL for accessing a public batch feed, which allows users to
get a series of entries.
|
java.net.URL |
getSnippetsEntryURL(java.lang.String id)
Gets an URL for accessing a snippet.
|
java.net.URL |
getSnippetsFeedURL()
Gets an URL for accessing a public feed, which allows users to perform
queries.
|
public static final java.lang.String DEFAULT_BASE_URL
public FeedURLFactory(java.lang.String url) throws java.net.MalformedURLException
getDefault()
instead.url
- an URL used as a base for the generated URLsjava.net.MalformedURLException
public static FeedURLFactory getDefault()
public java.net.URL getBaseURL()
public java.net.URL getSnippetsFeedURL()
GoogleBaseQuery
public java.net.URL getSnippetsBatchFeedURL()
getSnippetsFeedURL()
in one HTTP request.public java.net.URL getSnippetsEntryURL(java.lang.String id) throws java.net.MalformedURLException
id
- the id of the snippetGoogleBaseService
java.net.MalformedURLException
getSnippetsFeedURL()
public java.net.URL getItemsFeedURL()
GoogleBaseQuery
public java.net.URL getItemsEntryURL(java.lang.String entryId) throws java.net.MalformedURLException
entryId
- GoogleBaseService
java.net.MalformedURLException
getItemsFeedURL()
public java.net.URL getItemsBatchFeedURL()
com.google.gdata.client.Service#batch(java.net.URL,
com.google.gdata.data.BaseFeed)
public java.net.URL getLocalesFeedURL()
public java.net.URL getItemTypesFeedURL(java.lang.String locale) throws java.net.MalformedURLException
locale
- a locale, for example "de_DE", "en_GB", "en_US"java.net.MalformedURLException
public java.net.URL getItemTypesEntryURL(java.lang.String locale, java.lang.String itemType) throws java.net.MalformedURLException
locale
- a locale, for example "de_DE", "en_GB", "en_US"itemType
- the item type to be analysedjava.net.MalformedURLException
public java.net.URL getAttributesFeedURL()
GoogleBaseQuery