com.google.gwt.gadgets.client
Class IntrinsicFeature

java.lang.Object
  extended by com.google.gwt.gadgets.client.IntrinsicFeature
All Implemented Interfaces:
GadgetFeature

public class IntrinsicFeature
extends java.lang.Object
implements GadgetFeature

Provides access to intrinsic APIs provided by the container that are not part of a feature-specific API.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.gadgets.client.GadgetFeature
GadgetFeature.FeatureName, GadgetFeature.MayRequire
 
Method Summary
 void fetchContent(java.lang.String url, ContentFetchedHandler contentFetchedHandler)
          Fetches the content of the provided URL and, when complete, calls the ContentFetchedHandler.onContentFetched(ContentFetchedEvent) method with the content of the fetched URL.
 void fetchContent(java.lang.String url, ContentFetchedHandler contentFetchedHandler, int millis)
          Fetches the content of the provided URL and, when complete, calls the ContentFetchedHandler.onContentFetched(ContentFetchedEvent) method with the content of the fetched URL.
 void fetchXmlContent(java.lang.String url, XmlContentFetchedHandler contentFetchedHandler)
          Fetches the content of the provided URL and when complete calls the XmlContentFetchedHandler.onXmlContentFetched(XmlContentFetchedEvent) method with the content of the fetched URL.
 void fetchXmlContent(java.lang.String url, XmlContentFetchedHandler contentFetchedHandler, int millis)
          Fetches the content of the provided URL and when complete calls the XmlContentFetchedHandler.onXmlContentFetched(XmlContentFetchedEvent) method with the content of the fetched URL.
 java.lang.String getCachedUrl(java.lang.String url)
          Returns a proxy URL that can be used to access a given URL.
 java.lang.String getCachedUrl(java.lang.String url, int refreshIntervalSeconds)
          Returns a proxy URL that can be used to access a given URL with a specified refresh interval specified in seconds.
 java.lang.String getImageUrl(java.lang.String url)
          Returns a proxy URL that can be used to access the given image's URL.
 java.lang.String getImageUrl(java.lang.String url, int refreshIntervalSeconds)
          Returns a proxy URL that can be used to access a given image's URL with a specified refresh interval specified in seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fetchContent

public void fetchContent(java.lang.String url,
                         ContentFetchedHandler contentFetchedHandler)
Fetches the content of the provided URL and, when complete, calls the ContentFetchedHandler.onContentFetched(ContentFetchedEvent) method with the content of the fetched URL. The fetched content is cached on the Gadget Container.


fetchContent

public void fetchContent(java.lang.String url,
                         ContentFetchedHandler contentFetchedHandler,
                         int millis)
Fetches the content of the provided URL and, when complete, calls the ContentFetchedHandler.onContentFetched(ContentFetchedEvent) method with the content of the fetched URL. The fetched content is cached on the Gadget Container with a specified refresh interval specified in seconds.


fetchXmlContent

public void fetchXmlContent(java.lang.String url,
                            XmlContentFetchedHandler contentFetchedHandler)
Fetches the content of the provided URL and when complete calls the XmlContentFetchedHandler.onXmlContentFetched(XmlContentFetchedEvent) method with the content of the fetched URL. The content will then be parsed as XML content. The fetched content is cached on the Gadget Container.


fetchXmlContent

public void fetchXmlContent(java.lang.String url,
                            XmlContentFetchedHandler contentFetchedHandler,
                            int millis)
Fetches the content of the provided URL and when complete calls the XmlContentFetchedHandler.onXmlContentFetched(XmlContentFetchedEvent) method with the content of the fetched URL. The content will then be parsed as XML content. The fetched content is cached on the Gadget Container with a specified refresh interval specified in seconds.


getCachedUrl

public java.lang.String getCachedUrl(java.lang.String url)
Returns a proxy URL that can be used to access a given URL.


getCachedUrl

public java.lang.String getCachedUrl(java.lang.String url,
                                     int refreshIntervalSeconds)
Returns a proxy URL that can be used to access a given URL with a specified refresh interval specified in seconds.


getImageUrl

public java.lang.String getImageUrl(java.lang.String url)
Returns a proxy URL that can be used to access the given image's URL.


getImageUrl

public java.lang.String getImageUrl(java.lang.String url,
                                    int refreshIntervalSeconds)
Returns a proxy URL that can be used to access a given image's URL with a specified refresh interval specified in seconds.