org.mentawai.i18n
Class I18nDisplaytagAdapter

java.lang.Object
  extended by org.mentawai.i18n.I18nDisplaytagAdapter
All Implemented Interfaces:
org.displaytag.localization.I18nResourceProvider, org.displaytag.localization.LocaleResolver

public class I18nDisplaytagAdapter
extends Object
implements org.displaytag.localization.I18nResourceProvider, org.displaytag.localization.LocaleResolver

Mentawai implementation of a resource provider and locale resolver.

Author:
Caio Oliveira

Constructor Summary
I18nDisplaytagAdapter()
           
 
Method Summary
protected  I18N[] findI18NInPageContext(javax.servlet.jsp.PageContext pageContext)
           
 String getResource(String resourceKey, String defaultValue, javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.PageContext pageContext)
           
protected  void loadI18NInPageContext(javax.servlet.jsp.PageContext pageContext)
           
 Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nDisplaytagAdapter

public I18nDisplaytagAdapter()
Method Detail

resolveLocale

public Locale resolveLocale(javax.servlet.http.HttpServletRequest request)
Specified by:
resolveLocale in interface org.displaytag.localization.LocaleResolver

getResource

public String getResource(String resourceKey,
                          String defaultValue,
                          javax.servlet.jsp.tagext.Tag tag,
                          javax.servlet.jsp.PageContext pageContext)
Specified by:
getResource in interface org.displaytag.localization.I18nResourceProvider

findI18NInPageContext

protected I18N[] findI18NInPageContext(javax.servlet.jsp.PageContext pageContext)

loadI18NInPageContext

protected void loadI18NInPageContext(javax.servlet.jsp.PageContext pageContext)


Copyright © 2013. All Rights Reserved.