Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tiles.locale
Interface 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(java.util.Map<java.lang.String,java.lang.String> params)` Initializes the `LocaleResolver` object.
`java.util.Locale` | `resolveLocale(TilesRequestContext request)` Resolves the locale.

Method Detail

### init

    void init(java.util.Map<java.lang.String,java.lang.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

    java.util.Locale resolveLocale(TilesRequestContext request)

  Resolves the locale.

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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