org.tinygroup.weblayer.webcontext.parser.impl
public class ServletRequestContext extends org.apache.commons.fileupload.servlet.ServletRequestContext
request.getCharacterEncoding()返回null ,那么返回默认值
ISO-8859-1。该方法将被用来解析header,其中包括field name,file name等。原始类在
request.getCharacterEncoding()返回null
时,将使用操作系统默认编码,这样将返回不确定的结果。经过修改后,就和servlet规范相一致。| Modifier and Type | Field and 描述 |
|---|---|
static String |
DEFAULT_CHARSET |
| Constructor and 描述 |
|---|
ServletRequestContext(javax.servlet.http.HttpServletRequest request) |
| Modifier and Type | Method and 描述 |
|---|---|
String |
getCharacterEncoding() |
javax.servlet.http.HttpServletRequest |
getRequest() |
public ServletRequestContext(javax.servlet.http.HttpServletRequest request)
public String getCharacterEncoding()
getCharacterEncoding 接口 {1} 中的 {0} org.apache.commons.fileupload.RequestContextgetCharacterEncoding 类 {1} 中的 {0} org.apache.commons.fileupload.servlet.ServletRequestContextpublic javax.servlet.http.HttpServletRequest getRequest()
Copyright © 2006–2015 TinyGroup. All rights reserved.