|
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
|
+--javax.servlet.ServletRequestWrapper
|
+--javax.servlet.http.HttpServletRequestWrapper
|
+--oracle.i18n.servlet.filter.ServletRequestWrapper
ServletRequestWrapper is an HTTP request class that detects
the current user locale and supplies it the application.
| Field Summary |
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
ServletRequestWrapper(javax.servlet.http.HttpServletRequest request)
Constructs this class |
|
| Method Summary | |
String |
getCharacterEncoding()
Returns the name of the character encoding used in the body of this request, or null if the request does not specify a character
encoding |
Locale |
getLocale()
Returns the current locale derived from the Locale detection mechanism |
Enumeration |
getLocales()
Returns the enumeration object that includes the current locales derived from the Locale detection mechanism |
String |
getParameter(String key)
Returns the value of parameter corresponding to the key |
Map |
getParameterMap()
Returns a java.util.Map of the parameters of this request.
|
Enumeration |
getParameterNames()
Returns an Enumeration of String objects containing the names
of the parameters contained in this request. |
String[] |
getParameterValues(String key)
Returns an array of String objects containing all of the
values the given request parameter has, or null if the
parameter does not exist. |
String |
getRawParameter(String key)
Returns the raw value of parameter corresponding to the key This doesn't perform character set conversion |
void |
setCharacterEncoding(String env)
Sets the character set of the input stream. |
| Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
| Methods inherited from class javax.servlet.ServletRequestWrapper |
getAttribute, getAttributeNames, getContentLength, getContentType, getInputStream, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setRequest |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.ServletRequest |
getAttribute, getAttributeNames, getContentLength, getContentType, getInputStream, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute |
| Constructor Detail |
public ServletRequestWrapper(javax.servlet.http.HttpServletRequest request)
throws IOException
request - a default HttpServletRequest object
IOException - if I/O exception occurs| Method Detail |
public Locale getLocale()
getLocale in interface javax.servlet.ServletRequestgetLocale in class javax.servlet.ServletRequestWrapperLocale objectpublic Enumeration getLocales()
getLocales in interface javax.servlet.ServletRequestgetLocales in class javax.servlet.ServletRequestWrapperEnumeration objectpublic String getCharacterEncoding()
null if the request does not specify a character
encoding
getCharacterEncoding in interface javax.servlet.ServletRequestgetCharacterEncoding in class javax.servlet.ServletRequestWrapperString containing the name of the chararacter
encoding, or null if the request does not specify a
character encodingpublic String getRawParameter(String key)
key - a key value
String value corresponding to the keypublic String getParameter(String key)
getParameter in interface javax.servlet.ServletRequestgetParameter in class javax.servlet.ServletRequestWrapperkey - a key value
String value corresponding to the keypublic String[] getParameterValues(String key)
String objects containing all of the
values the given request parameter has, or null if the
parameter does not exist.
getParameterValues in interface javax.servlet.ServletRequestgetParameterValues in class javax.servlet.ServletRequestWrapperkey - a parameter name
String objects containing parameter's
values corresponding to the key.public Map getParameterMap()
java.util.Map of the parameters of this request.
For HTTP servlets, parameters are contained in the query string or
posted form data.
getParameterMap in interface javax.servlet.ServletRequestgetParameterMap in class javax.servlet.ServletRequestWrapperjava.util.Map object containing parameter names as
keys and parameter values as map values.public Enumeration getParameterNames()
Enumeration of String objects containing the names
of the parameters contained in this request. If the request has no
parameters, the method returns an empty Enumeration.
getParameterNames in interface javax.servlet.ServletRequestgetParameterNames in class javax.servlet.ServletRequestWrapper
public void setCharacterEncoding(String env)
throws UnsupportedEncodingException
setCharacterEncoding in interface javax.servlet.ServletRequestsetCharacterEncoding in class javax.servlet.ServletRequestWrapperenv - an IANA character set name
UnsupportedEncodingException - if the given character set name is
invalid
|
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 | |||||||||