This project has retired. For details please refer to its Attic page.
LocaleResolver (Tiles 2 2.0.7 API)

org.apache.tiles.locale
Interface LocaleResolver

Package class diagram package LocaleResolver
All Known Implementing Classes:
DefaultLocaleResolver

public interface LocaleResolver

It represents an object able to resolve the current locale for the current request, where its strategy depends on its implementation.

Version:
$Rev: 527870 $ $Date: 2007-04-12 12:19:41 +0200 (Thu, 12 Apr 2007) $

Method Summary
 void init(Map<String,String> params)
          Initializes the LocaleResolver object.
 Locale resolveLocale(TilesRequestContext request)
          Resolves the locale.
 

Method Detail

init

void init(Map<String,String> params)
          throws TilesException
Initializes the LocaleResolver object.

This method must be called before the resolveLocale(TilesRequestContext) method is called.

Parameters:
params - A map of properties used to set up the resolver.
Throws:
TilesException - if required properties are not passed in or the initialization fails.

resolveLocale

Locale resolveLocale(TilesRequestContext request)
Resolves the locale.

Parameters:
request - The Tiles request object.
Returns:
The current locale for the current request.


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