Nitido Inc.

com.nitido.nimx.services.brand
Class BrandUtil

java.lang.Object
  extended by com.nitido.nimx.services.brand.BrandUtil

public class BrandUtil
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_LOCALE
           
 
Constructor Summary
BrandUtil()
           
 
Method Summary
static java.lang.String getLocale(NimletInput input)
           
static java.lang.String getLocale(NimletInput input, Entity user)
          Determine the locale from the input and the user.
static java.lang.String getLocaleFromCookies(javax.servlet.http.Cookie[] cookies)
           
static void setLocaleCookie(NimletInput input, java.lang.String locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOCALE

public static final java.lang.String DEFAULT_LOCALE
Constructor Detail

BrandUtil

public BrandUtil()
Method Detail

getLocale

public static java.lang.String getLocale(NimletInput input)

getLocale

public static java.lang.String getLocale(NimletInput input,
                                         Entity user)
Determine the locale from the input and the user. First an attempt is made to retrieve the locale from the entity's use space ( if the entity is not null ). If no valid locale is available at that point the request is consulted for a locale cookie.

Parameters:
input - the request
user - the user making the request
Returns:
locale to use for this request, or null if one can't be found

getLocaleFromCookies

public static java.lang.String getLocaleFromCookies(javax.servlet.http.Cookie[] cookies)

setLocaleCookie

public static void setLocaleCookie(NimletInput input,
                                   java.lang.String locale)

Nitido NiM 2.5 Java API

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.