org.jboss.portal.widget.google.provider
Class GGWidgetInfoBuilder

java.lang.Object
  extended by org.jboss.portal.widget.google.provider.GGWidgetInfoBuilder

public class GGWidgetInfoBuilder
extends java.lang.Object

Build widget meta data from its URL.

Version:
$Revision: 1.1 $
Author:
Julien Viet

Constructor Summary
GGWidgetInfoBuilder(java.net.URL url)
           
 
Method Summary
 GGWidgetInfo create()
          Build the widget info from the url or return null if it is not possible.
 java.net.URL getURL()
           
protected  byte[] obtainLocaleBundle(java.net.URL url)
          needed for testing
protected  byte[] obtainWidget(java.net.URL url)
          needed for testing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GGWidgetInfoBuilder

public GGWidgetInfoBuilder(java.net.URL url)
Method Detail

getURL

public java.net.URL getURL()

create

public GGWidgetInfo create()
                    throws java.lang.Exception
Build the widget info from the url or return null if it is not possible.

Returns:
the widget info
Throws:
java.lang.Exception

obtainWidget

protected byte[] obtainWidget(java.net.URL url)
                       throws java.lang.Exception
needed for testing

Throws:
java.lang.Exception

obtainLocaleBundle

protected byte[] obtainLocaleBundle(java.net.URL url)
                             throws java.lang.Exception
needed for testing

Throws:
java.lang.Exception