@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)
@Comment(value="\u8fd4\u56de\u6392\u9664\u53c2\u6570\u5217\u8868") public Map<String,Object> getParameterMapByExclude(@Comment(value="\u6392\u9664\u5c5e\u6027\u540d\u5217\u8868") Map<String,Object> paramMap, @Comment(value="\u6392\u9664\u5c5e\u6027\u540d\u5217\u8868") List<String> excludePropertyNames)
excludePropertyNames - 排除属性名列表@Comment(value="\u8fd4\u56de\u6392\u9664\u53c2\u6570\u5217\u8868") public Map<String,Object> getParameterMapByExclude(@Comment(value="\u6392\u9664\u5c5e\u6027\u540d\u5217\u8868") List<String> excludePropertyNames)
excludePropertyNames - @Comment(value="\u8fd4\u56de\u5305\u62ec\u53c2\u6570\u5217\u8868") public Map<String,Object> getParameterMapByInclude(@Comment(value="\u989d\u5916\u6dfb\u52a0\u7684\u5c5e\u6027\u503c") Map<String,Object> paramMap, @Comment(value="\u5305\u62ec\u5c5e\u6027\u7684\u53c2\u6570") List<String> includePropertyNames)
paramMap - 额外添加的属性值includePropertyNames - 包括属性的参数@Comment(value="\u8fd4\u56de\u5305\u62ec\u53c2\u6570\u5217\u8868") public Map<String,Object> getParameterMapByInclude(@Comment(value="\u5305\u62ec\u5c5e\u6027\u7684\u53c2\u6570") List<String> includePropertyNames)
includePropertyNames - 包括属性的参数@Comment(value="\u83b7\u53d6request\u4e2d\u83b7\u53d6\u5c5e\u6027Map") public Map<String,Object> getAttributes()
@Comment(value="\u8f93\u51fa\u5185\u5bb9")
public void out(@Comment(value="\u8f93\u51fa\u5185\u5bb9")
String content)
throws IOException
content - IOException@Comment(value="\u628aMap\u6570\u636e\u8bbe\u7f6e\u5230Request\u7684\u5c5e\u6027\u4e2d")
public void setAttributes(@Comment(value="\u5c5e\u6027Map")
Map<String,Object> attributeMap)
attributeMap - Copyright © 2025. All rights reserved.