Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

oracle.i18n.servlet.localesource
Class UserInput

java.lang.Object
  |
  +--oracle.i18n.servlet.localesource.LocaleSource
        |
        +--oracle.i18n.servlet.localesource.UserInput
All Implemented Interfaces:
Serializable

public class UserInput
extends LocaleSource

UserInput calls request.getParameter(LocaleSource.Parameter) to retrieve the user input. The user input locales will be cached for subsequent use in the session.

In typical web applications, user input comes from web clients that submit a form containing a locale and its attributes. The UserInput class is used when the application allows users to specify their language preference. By default, the parameters defined in LocaleSource.Parameter are recognized as the user input locale.

Since:
10.1.0.2
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class oracle.i18n.servlet.localesource.LocaleSource
LocaleSource.Alignment, LocaleSource.Parameter, LocaleSource.WritingDirection
 
Field Summary
 
Fields inherited from class oracle.i18n.servlet.localesource.LocaleSource
GET_INSTANCE_METHOD
 
Method Summary
static oracle.i18n.servlet.localesource.LocaleSource getInstance(javax.servlet.http.HttpServletRequest request)
          Returns the instance of this object.
 boolean load()
          Loads a locale and attributes from the source.
 boolean store()
          Stores this object into the source.
 
Methods inherited from class oracle.i18n.servlet.localesource.LocaleSource
equals, getAttribute, getCharacterSet, getCollator, getCurrencyFormat, getDateFormat, getDateTimeFormat, getISOCurrency, getLocale, getLocaleSourceClass, getNumberFormat, getTimeFormat, getTimeZone, getWritingDirection, hashCode, isCached, isReadOnly, isValidated, setAttribute, setCharacterSet, setCollator, setCurrencyFormat, setDateFormat, setDateTimeFormat, setISOCurrency, setLocale, setLocale, setLocaleSourceClass, setNumberFormat, setTimeFormat, setTimeZone, setWritingDirection
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static oracle.i18n.servlet.localesource.LocaleSource getInstance(javax.servlet.http.HttpServletRequest request)
Returns the instance of this object.

This is called by the servlet filter. Application doesn't require to call this.

Parameters:
request - HttpServletRequest object
Returns:
a UserInput object casted to LocaleSource

store

public boolean store()
Stores this object into the source.

This is called by the servlet filter. Application doesn't require to call this.

Specified by:
store in class LocaleSource
Returns:
true at all times

load

public boolean load()
Loads a locale and attributes from the source.

This is called by the servlet filter. Application doesn't require to call this.

Specified by:
load in class LocaleSource
Returns:
true at all times

Oracle® Globalization Development Kit Java API Reference
10g Release 1(10.1)

B10971-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.