|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.gbase.client.FeedURLFactory
public class FeedURLFactory
Provides feed URLs that can be used with a GoogleBase server.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_BASE_URL
URL of the server to connect to by default. |
Constructor Summary | |
---|---|
FeedURLFactory(java.lang.String url)
Creates an URL factory targeted to a server. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_BASE_URL
Constructor Detail |
---|
public FeedURLFactory(java.lang.String url) throws java.net.MalformedURLException
getDefault()
instead.
url
- an URL used as a base for the generated URLs
java.net.MalformedURLException
Method Detail |
---|
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 snippet
GoogleBaseService
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 analysed
java.net.MalformedURLException
public java.net.URL getAttributesFeedURL()
GoogleBaseQuery
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |