|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.i18n.servlet.ServletHelper
ServletHelper is a delegate class that provides a bridge
between Java servlets and globalization objects. All operations that
involve Java servlets are performed using this class.
| Method Summary | |
static oracle.i18n.servlet.ApplicationContext |
getApplicationContextInstance(javax.servlet.http.HttpServletRequest request)
Returns an ApplicationContext object associated with the
HTTP request object |
static oracle.i18n.servlet.localesource.LocaleSource |
getLocaleSourceInstance(javax.servlet.http.HttpServletRequest request)
Returns a LocaleSource object associated with the HTTP
request object |
static oracle.i18n.servlet.Localizer |
getLocalizerInstance(javax.servlet.http.HttpServletRequest request)
Returns a Localizer object derived from the HTTP request
object |
static String |
rewriteURL(String baseURL,
javax.servlet.http.HttpServletRequest request)
Rewrites a URL based on the rules specified in the application configuration file.This method is used to determine the URL where localized static contents exist. |
static String |
rewriteURL(String baseURL,
String name,
javax.servlet.http.HttpServletRequest request)
Rewrites a URL based on the rules specified in the application configuration file.This method is used to determine the URL where localized static contents exist. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static oracle.i18n.servlet.ApplicationContext getApplicationContextInstance(javax.servlet.http.HttpServletRequest request)
ApplicationContext object associated with the
HTTP request object
request - an HTTP request object
ApplicationContext object
IllegalArgumentException - if ApplicationContext cannot
be instantiated.public static oracle.i18n.servlet.localesource.LocaleSource getLocaleSourceInstance(javax.servlet.http.HttpServletRequest request)
LocaleSource object associated with the HTTP
request object
request - an HTTP request object
public static oracle.i18n.servlet.Localizer getLocalizerInstance(javax.servlet.http.HttpServletRequest request)
Localizer object derived from the HTTP request
object
request - an HTTP request object
Localizer object.
public static String rewriteURL(String baseURL,
javax.servlet.http.HttpServletRequest request)
For example, if localized contents are supplied in
/images/es/welcome.jpg for Spanish and
/images/ja/welcome.jpg for Japanese locales, the
baseURL would be /images/welcome.jpg, and the
rule defined in the regular expression should be
"(.)/([a-z0-9A-Z]+.jpg)$/" in order that the URL
be replaced with the string "$1/$L/$2".
baseURL - a URL stringrequest - an HTTP request object
public static String rewriteURL(String baseURL,
String name,
javax.servlet.http.HttpServletRequest request)
For example, if localized contents are supplied in
/images/es/welcome.jpg for Spanish and
/images/ja/welcome.jpg for Japanese locales, the
baseURL would be /images/welcome.jpg, and the
rule defined in the regular expression should be
"(.)/([a-z0-9A-Z]+.jpg)$/" in order that the URL
be replaced with the string "$1/$L/$2".
baseURL - a URL stringname - the name of rewrite URL rulerequest - an HTTP request object
|
Oracle® Globalization Development Kit Java API Reference 10g Release 1(10.1) B10971-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||