Home » commons-chain-1.2-src » org.apache.commons » chain » web » [javadoc | source]
org.apache.commons.chain.web
abstract public class: AbstractSetLocaleCommand [javadoc | source]
java.lang.Object
   org.apache.commons.chain.web.AbstractSetLocaleCommand

All Implemented Interfaces:
    Command

Direct Known Subclasses:
    ServletSetLocaleCommand, FacesSetLocaleCommand, PortletSetLocaleCommand

Abstract base Command implementation for setting the response locale for this response to the Locale stored under the context attribute key returned by the localeKey property.

Method from org.apache.commons.chain.web.AbstractSetLocaleCommand Summary:
execute,   getLocaleKey,   setLocale,   setLocaleKey
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.chain.web.AbstractSetLocaleCommand Detail:
 public boolean execute(Context context) throws Exception 

    Retrieve the Locale stored under the specified context attribute key, and establish it on this response.

 public String getLocaleKey() 

    Return the context attribute key under which we will retrieve the response Locale.

 abstract protected  void setLocale(Context context,
    Locale locale)

    Establish the specified Locale for this response.

 public  void setLocaleKey(String localeKey) 

    Set the context attribute key under which we will retrieve the response Locale.