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

All Implemented Interfaces:
    Command

Direct Known Subclasses:
    ServletGetLocaleCommand, PortletGetLocaleCommand, FacesGetLocaleCommand

Abstract base Command implementation for retrieving the requested Locale from our Context , and storing it under the context attribute key returned by the localeKey property.

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

    Retrieve the Locale for this request, and store it under the specified context attribute.

 abstract protected Locale getLocale(Context context)

    Retrieve and return the Locale for this request.

 public String getLocaleKey() 

    Return the context attribute key under which we will store the request Locale.

 public  void setLocaleKey(String localeKey) 

    Set the context attribute key under which we will store the request Locale.