This project has retired. For details please refer to its Attic page.
LocaleResolver (Tiles 2 2.1.4 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: 637434 $ $Date: 2008-03-15 16:48:38 +0100 (sab, 15 mar 2008) $

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)
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.

resolveLocale

Locale resolveLocale(TilesRequestContext request)
Resolves the locale.

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


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