本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getParameter()
方法的一些代码示例,展示了HttpServletRequestWrapper.getParameter()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getParameter()
方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getParameter
暂无
代码示例来源:origin: cloudfoundry/uaa
@Override
public String getParameter(String name) {
return super.getParameter(name);
}
代码示例来源:origin: spring-projects/spring-framework
@Override
@Nullable
public String getParameter(String name) {
String queryStringValue = super.getParameter(name);
String formValue = this.formParameters.getFirst(name);
return (queryStringValue != null ? queryStringValue : formValue);
}
代码示例来源:origin: spring-projects/spring-framework
@Override
@Nullable
public String getParameter(String name) {
String queryStringValue = super.getParameter(name);
String formValue = this.formParams.getFirst(name);
return (queryStringValue != null ? queryStringValue : formValue);
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String getParameter(String name) {
if ("code".equals(name)) {
return newCode;
}
return super.getParameter(name);
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public String getParameter(String name) {
if (this.cachedContent.size() == 0 && isFormPost()) {
writeRequestParametersToCachedContent();
}
return super.getParameter(name);
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String getParameter(String name) {
if ("scope".equals(name)) {
return translateScope(super.getParameter(name));
} else {
return super.getParameter(name);
}
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String getParameter(String name) {
if (RESPONSE_TYPE.equals(name)) {
return removeIdTokenValue(super.getParameter(name));
} else {
return super.getParameter(name);
}
}
代码示例来源:origin: oblac/jodd
/**
* @see javax.servlet.http.HttpServletRequest#getParameter(String)
*/
@Override
public String getParameter(final String name) {
if (mreq == null) {
return super.getParameter(name);
}
return mreq.getParameter(name);
}
代码示例来源:origin: org.springframework/spring-web
@Override
@Nullable
public String getParameter(String name) {
String queryStringValue = super.getParameter(name);
String formValue = this.formParameters.getFirst(name);
return (queryStringValue != null ? queryStringValue : formValue);
}
代码示例来源:origin: org.springframework/spring-web
@Override
@Nullable
public String getParameter(String name) {
String queryStringValue = super.getParameter(name);
String formValue = this.formParams.getFirst(name);
return (queryStringValue != null ? queryStringValue : formValue);
}
代码示例来源:origin: primefaces/primefaces
@Override
public String getParameter(String name) {
if (formParams.containsKey(name)) {
List<String> values = formParams.get(name);
if (values.isEmpty()) {
return "";
}
else {
return values.get(0);
}
}
else {
return super.getParameter(name);
}
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String getParameter(String name) {
if(name.equals("code")) {
return (String) getAttribute(name);
}
return super.getParameter(name);
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String getParameter(String name) {
return convertISO8859_1_to_UTF_8(super.getParameter(name));
}
代码示例来源:origin: org.springframework/spring-web
@Override
public String getParameter(String name) {
if (this.cachedContent.size() == 0 && isFormPost()) {
writeRequestParametersToCachedContent();
}
return super.getParameter(name);
}
代码示例来源:origin: wuyouzhuguli/FEBS-Shiro
/**
* 覆盖getParameter方法,将参数名和参数值都做xss过滤
* 如果需要获得原始的值,则通过super.getParameterValues(name)来获取
* getParameterNames,getParameterValues和getParameterMap也可能需要覆盖
*/
@Override
public String getParameter(String name) {
if (("content".equals(name) || name.endsWith("WithHtml")) && !isIncludeRichText) {
return super.getParameter(name);
}
name = JsoupUtil.clean(name);
String value = super.getParameter(name);
if (StringUtils.isNotBlank(value)) {
value = JsoupUtil.clean(value);
}
return value;
}
代码示例来源:origin: opensourceBIM/BIMserver
@Override
public String getParameter(String name) {
if (AbstractHTTPDestination.SERVICE_REDIRECTION.equals(name)) {
return "true";
}
return super.getParameter(name);
}
}
代码示例来源:origin: paoding-code/paoding-rose
@Override
public String getParameter(String name) {
String value = super.getParameter(name);
if (value == null) {
value = parameters.get(name);
}
return value;
}
代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel
@Override
public String getParameter(String name) {
String[] values = _params.get(name);
if (_inherit && (values == null)) {
return super.getParameter(name);
}
if (ArrayUtil.isNotEmpty(values)) {
return values[0];
}
return null;
}
代码示例来源:origin: pig4cloud/pig
@Override
public String getParameter(String name) {
String value = super.getParameter(xssEncode(name));
if (StringUtils.isNotBlank(value)) {
value = xssEncode(value);
}
return value;
}
代码示例来源:origin: i2p/i2p.i2p
/**
* Parameter names starting with "nofilter_" will not be filtered.
*/
@Override
public String getParameter(String parameter) {
String value = super.getParameter(parameter);
if (parameter.startsWith(NOFILTER))
return value;
String rv = stripXSS(value, parameterValuePattern);
if (value != null && rv == null) {
Log log = I2PAppContext.getGlobalContext().logManager().getLog(XSSRequestWrapper.class);
log.logAlways(Log.WARN, "URL \"" + getServletPath() + "\" Stripped param \"" + parameter + "\" : \"" + value + '"');
}
return rv;
}
内容来源于网络,如有侵权,请联系作者删除!