org.apache.shindig.gadgets.render
Class OpenSocialI18NGadgetRewriter

java.lang.Object
  extended by org.apache.shindig.gadgets.render.OpenSocialI18NGadgetRewriter
All Implemented Interfaces:
GadgetRewriter

public class OpenSocialI18NGadgetRewriter
extends Object
implements GadgetRewriter

Produce data constants that are needed by the opensocial-i18n feature based on user locale.


Constructor Summary
OpenSocialI18NGadgetRewriter()
           
 
Method Summary
protected  String attemptToLoadDateConstants(String localeName)
           
protected  String attemptToLoadResourceFullyQualified(String resource)
           
 void rewrite(Gadget gadget, MutableContent mutableContent)
          Rewrite the gadget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSocialI18NGadgetRewriter

public OpenSocialI18NGadgetRewriter()
Method Detail

rewrite

public void rewrite(Gadget gadget,
                    MutableContent mutableContent)
             throws RewritingException
Description copied from interface: GadgetRewriter
Rewrite the gadget.

Specified by:
rewrite in interface GadgetRewriter
Parameters:
gadget - Gadget to rewrite.
mutableContent - the content of the gadget to be manipulated.
Throws:
RewritingException

attemptToLoadDateConstants

protected String attemptToLoadDateConstants(String localeName)
                                     throws IOException
Throws:
IOException

attemptToLoadResourceFullyQualified

protected String attemptToLoadResourceFullyQualified(String resource)
                                              throws IOException
Throws:
IOException


Copyright © 2007-2012. All Rights Reserved.