@Component public class SohelpWeb extends Object
构造器和说明 |
---|
SohelpWeb() |
限定符和类型 | 方法和说明 |
---|---|
Map<String,Object> |
getAttributes()
获取request中获取属性Map
|
String |
getDefaultLanguage()
获取客户端默认语言
|
Map<String,Object> |
getParameterMap() |
Map<String,Object> |
getParameterMap(Map<String,Object> paramMap) |
Map<String,Object> |
getParameterMapByExclude(List<String> excludePropertyNames) |
Map<String,Object> |
getParameterMapByExclude(Map<String,Object> paramMap,
List<String> excludePropertyNames)
返回排除参数列表
|
Map<String,Object> |
getParameterMapByInclude(List<String> includePropertyNames)
返回包括参数列表
|
Map<String,Object> |
getParameterMapByInclude(Map<String,Object> paramMap,
List<String> includePropertyNames)
返回包括参数列表
|
javax.servlet.http.HttpServletRequest |
getRequest()
获取HttpServletRequest对象
|
javax.servlet.http.HttpServletResponse |
getResponse()
HttpServletResponse对象
|
void |
out(String content)
输出内容
|
boolean |
requestAvailable()
判断Request是否有效
|
void |
setAttribute(String name,
Object value)
设置Request属性值
|
void |
setAttributes(Map<String,Object> attributeMap)
把Map数据设置到Request的属性中
|
@Comment(value="\u83b7\u53d6\u5ba2\u6237\u7aef\u9ed8\u8ba4\u8bed\u8a00") public String getDefaultLanguage()
@Comment(value="\u83b7\u53d6HttpServletRequest\u5bf9\u8c61") public javax.servlet.http.HttpServletRequest getRequest()
@Comment(value="HttpServletResponse\u5bf9\u8c61") public javax.servlet.http.HttpServletResponse getResponse()
@Comment(value="\u8bbe\u7f6eRequest\u5c5e\u6027\u503c") public void setAttribute(String name, Object value)
name
- 属性名value
- 属性值@Comment(value="HttpServletRequest\u662f\u5426\u53ef\u7528") public boolean requestAvailable()
@Comment(value="\u83b7\u53d6URL\u53c2\u6570\u4e2d\u83b7\u53d6Map\u5f62\u5f0f\u7684\u6570\u636e\u96c6\uff0c\u5e76\u53ef\u4ee5\u6dfb\u52a0\u65b0\u7684\u53c2\u6570") public Map<String,Object> getParameterMap(@Comment(value="\u989d\u5916\u6dfb\u52a0\u65b0\u7684\u53c2\u6570") Map<String,Object> paramMap)
public Map<String,Object> getParameterMapByExclude(Map<String,Object> paramMap, List<String> excludePropertyNames)
excludePropertyNames
- 排除属性名列表public Map<String,Object> getParameterMapByExclude(List<String> excludePropertyNames)
excludePropertyNames
- public Map<String,Object> getParameterMapByInclude(Map<String,Object> paramMap, List<String> includePropertyNames)
paramMap
- 额外添加的属性值includePropertyNames
- 包括属性的参数public Map<String,Object> getParameterMapByInclude(List<String> includePropertyNames)
includePropertyNames
- 包括属性的参数public void out(String content) throws IOException
content
- IOException
public void setAttributes(Map<String,Object> attributeMap)
attributeMap
- Copyright © 2025. All rights reserved.