org.tinygroup.weblayer.webcontext.parser.impl
public class ParserWebContextImpl extends AbstractWebContextWrapper implements ParserWebContext
DEFAULT_CHARSET_ENCODING, UPLOAD_FAILED, UPLOAD_SIZE_LIMIT_EXCEEDED, URL_CASE_FOLDING_LOWER, URL_CASE_FOLDING_LOWER_WITH_UNDERSCORES, URL_CASE_FOLDING_NONE, URL_CASE_FOLDING_UPPER, URL_CASE_FOLDING_UPPER_WITH_UNDERSCORES| Constructor and 描述 |
|---|
ParserWebContextImpl(WebContext wrappedContext)
包装一个
RequestContext对象。 |
| Modifier and Type | Method and 描述 |
|---|---|
String |
convertCase(String str)
将指定的字符串根据
getCaseFolding()的设置,转换成指定大小写形式。 |
String |
getCaseFolding()
按照指定的风格转换parameters和cookies的名称,默认为“小写加下划线”。
|
CookieParser |
getCookies()
取得所有cookie。
|
String |
getHtmlFieldSuffix()
取得代表HTML字段的后缀。
|
ParameterParser |
getParameters()
取得所有query参数。
|
org.springframework.beans.PropertyEditorRegistrar |
getPropertyEditorRegistrar()
取得用来转换参数类型的propertyEditor注册器。
|
UploadService |
getUploadService()
返回上传服务
|
String |
getURIEncoding()
当
useServletEngineParser==false并且
useBodyEncodingForURI=false时,用该编码来解释GET请求的参数。 |
boolean |
isAutoUpload()
是否自动执行Upload。
|
boolean |
isConverterQuiet()
类型转换出现异常时,是否不报错,而是返回默认值。
|
boolean |
isTrimming()
是否对输入参数进行trimming。
|
boolean |
isUnescapeParameters()
是否对参数进行HTML entities解码,默认为
false。 |
boolean |
isUseBodyEncodingForURI()
是否以request.setCharacterEncoding所指定的编码来解析query,默认为
true。 |
boolean |
isUseServletEngineParser()
是否使用servlet引擎的parser,默认为
false。 |
void |
setAutoUpload(boolean autoUpload)
是否自动执行Upload。
|
void |
setCaseFolding(String folding)
按照指定的风格转换parameters和cookies的名称,默认为“小写加下划线”。
|
void |
setConverterQuiet(boolean converterQuiet)
设置类型转换出现异常时,是否不报错,而是返回默认值。
|
void |
setHtmlFieldSuffix(String htmlFieldSuffix)
设置代表HTML字段的后缀。
|
void |
setParameterParserFilters(ParameterParserFilter[] filters)
设置用于过滤参数的filters。
|
void |
setPropertyEditorRegistrar(org.springframework.beans.PropertyEditorRegistrar propertyEditorRegistrar)
设置用来转换参数类型的propertyEditor注册器。
|
void |
setTrimming(boolean trimming)
是否对输入参数进行trimming。
|
void |
setUnescapeParameters(boolean unescapeParameters)
是否对参数进行HTML entities解码,默认为
false。 |
void |
setUploadService(UploadService upload)
设置upload service。
|
void |
setURIEncoding(String uriEncoding)
当
useServletEngineParser==false并且
useBodyEncodingForURI=false时,用该编码来解释GET请求的参数。 |
void |
setUseBodyEncodingForURI(boolean useBodyEncodingForURI)
是否以request.setCharacterEncoding所指定的编码来解析query,默认为
true。 |
void |
setUseServletEngineParser(boolean useServletEngineParser)
是否使用servlet引擎的parser,默认为
false。 |
exist, existFromWrapperContext, get, getFromWrapperContext, getObject, getRequest, getResponse, getServletContext, getWrappedWebContext, getWrappedWebContext, init, isRequestFinished, putSubWebContext, setObject, setRequest, setResponse, setServletContextclear, clearSubContext, contain, containNodeMap, createSubContext, existNodeMap, findNodeMap, get, getParent, getSubContext, getSubContextMap, put, putContext, putSubContext, remove, removeSubContext, renameKey, renameKeyNodeMap, setParentget, getItemMap, put, putAll, remove, setItemMap, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObject, getRequest, getResponse, getServletContext, getWrappedWebContext, init, isRequestFinished, setObject, setRequest, setResponse, setServletContextpublic ParserWebContextImpl(WebContext wrappedContext)
RequestContext对象。wrappedContext - 被包装的RequestContextpublic org.springframework.beans.PropertyEditorRegistrar getPropertyEditorRegistrar()
getPropertyEditorRegistrar 接口 {1} 中的 {0} ParserWebContextpublic void setPropertyEditorRegistrar(org.springframework.beans.PropertyEditorRegistrar propertyEditorRegistrar)
public boolean isConverterQuiet()
isConverterQuiet 接口 {1} 中的 {0} ParserWebContextpublic void setConverterQuiet(boolean converterQuiet)
public boolean isAutoUpload()
isAutoUpload 接口 {1} 中的 {0} ParserWebContextpublic void setAutoUpload(boolean autoUpload)
public String getCaseFolding()
getCaseFolding 接口 {1} 中的 {0} ParserWebContextpublic void setCaseFolding(String folding)
public boolean isUnescapeParameters()
false。isUnescapeParameters 接口 {1} 中的 {0} ParserWebContextpublic void setUnescapeParameters(boolean unescapeParameters)
false。public void setUseServletEngineParser(boolean useServletEngineParser)
false。public boolean isUseServletEngineParser()
false。isUseServletEngineParser 接口 {1} 中的 {0} ParserWebContextpublic boolean isUseBodyEncodingForURI()
true。isUseBodyEncodingForURI 接口 {1} 中的 {0} ParserWebContextpublic void setUseBodyEncodingForURI(boolean useBodyEncodingForURI)
true。public String getURIEncoding()
useServletEngineParser==false并且
useBodyEncodingForURI=false时,用该编码来解释GET请求的参数。getURIEncoding 接口 {1} 中的 {0} ParserWebContextpublic void setURIEncoding(String uriEncoding)
useServletEngineParser==false并且
useBodyEncodingForURI=false时,用该编码来解释GET请求的参数。public boolean isTrimming()
true。isTrimming 接口 {1} 中的 {0} ParserWebContextpublic void setTrimming(boolean trimming)
true。public void setUploadService(UploadService upload)
upload - UploadService对象public void setParameterParserFilters(ParameterParserFilter[] filters)
public String getHtmlFieldSuffix()
getHtmlFieldSuffix 接口 {1} 中的 {0} ParserWebContextpublic void setHtmlFieldSuffix(String htmlFieldSuffix)
public ParameterParser getParameters()
getParameters 接口 {1} 中的 {0} ParserWebContextParameterParser实例public CookieParser getCookies()
getCookies 接口 {1} 中的 {0} ParserWebContextCookieParser实例public String convertCase(String str)
getCaseFolding()的设置,转换成指定大小写形式。convertCase 接口 {1} 中的 {0} ParserWebContextstr - 要转换的字符串public UploadService getUploadService()
ParserWebContextgetUploadService 接口 {1} 中的 {0} ParserWebContextCopyright © 2006–2015 TinyGroup. All rights reserved.