|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.ip.me.api.runtime.jsp.ParameterConverter
This class provides methods for converting the encoding of http servlet
request parameter values. A conversion will always be performed from
ISO8859_1 to a character encoding that has to be specified via setCharacterEncoding
method.
Constructor Summary | |
ParameterConverter(HttpServletRequest request)
Constructs a new ParameterConverter instance around the given
http servlet request. |
Method Summary | |
java.lang.String |
getParameter(java.lang.String name)
Returns the converted parameter value as a string, null if the
parameter does not exist, or the original parameter value without encoding
change if no encoding was yet set. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the converted parameter values as a string array, null if the
parameter does not exist, or the original parameter values without encoding
change if no encoding was yet set. |
HttpServletRequest |
getRequest()
Returns the request the ParameterConverter instance was constructed
around. |
void |
setCharacterEncoding(java.lang.String encoding)
Sets the character encoding that has to be used for parameter value conversions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParameterConverter(HttpServletRequest request)
ParameterConverter
instance around the given
http servlet request. However, a character encoding for the parameter value
conversions is not implicitly set. The (target) character encoding has
explicitly to be set using the setCharacterEncoding
method.
request
- The HttpServletRequest
instance containing the
parameter values that have to be converted.Method Detail |
public void setCharacterEncoding(java.lang.String encoding) throws java.io.UnsupportedEncodingException
encoding
- The character encoding that has to be
used for parameter value conversions.
java.io.UnsupportedEncodingException
- Will be thrown if either ISO8859_1
or the given encoding are not supported.public java.lang.String getParameter(java.lang.String name)
null
if the
parameter does not exist, or the original parameter value without encoding
change if no encoding was yet set.
name
- Name of the http servlet request parameter whose value should be
converted.
public java.lang.String[] getParameterValues(java.lang.String name)
null
if the
parameter does not exist, or the original parameter values without encoding
change if no encoding was yet set.
name
- Name of the http servlet request parameter whose values should be
converted.
public HttpServletRequest getRequest()
ParameterConverter
instance was constructed
around.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |