org.apache.struts.chain.commands
Class AbstractSelectLocale

java.lang.Object
  extended by org.apache.struts.chain.commands.ActionCommandBase
      extended by org.apache.struts.chain.commands.AbstractSelectLocale
All Implemented Interfaces:
org.apache.commons.chain.Command, ActionCommand
Direct Known Subclasses:
SelectLocale

public abstract class AbstractSelectLocale
extends ActionCommandBase

Select the Locale to be used for this request.

Version:
$Rev: 471754 $ $Date: 2005-11-12 13:01:44 -0500 (Sat, 12 Nov 2005) $

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
AbstractSelectLocale()
           
 
Method Summary
 boolean execute(ActionContext actionCtx)
          Select the Locale to be used for this request.
protected abstract  Locale getLocale(ActionContext context)
          Return the Locale to be used for this request.
 
Methods inherited from class org.apache.struts.chain.commands.ActionCommandBase
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSelectLocale

public AbstractSelectLocale()
Method Detail

execute

public boolean execute(ActionContext actionCtx)
                throws Exception

Select the Locale to be used for this request.

Specified by:
execute in interface ActionCommand
Specified by:
execute in class ActionCommandBase
Parameters:
actionCtx - The Context for the current request
Returns:
false so that processing continues
Throws:
Exception - if thrown by the Action class

getLocale

protected abstract Locale getLocale(ActionContext context)

Return the Locale to be used for this request.

Parameters:
context - The Context for this request
Returns:
The Locale to be used for this request


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.