本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getParameterValues()
方法的一些代码示例,展示了HttpServletRequestWrapper.getParameterValues()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getParameterValues()
方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getParameterValues
暂无
代码示例来源:origin: cloudfoundry/uaa
@Override
public String[] getParameterValues(String name) {
return super.getParameterValues(name);
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String[] getParameterValues(String name) {
if ("code".equals(name)) {
return new String[]{newCode};
}
return super.getParameterValues(name);
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public String[] getParameterValues(String name) {
if (this.cachedContent.size() == 0 && isFormPost()) {
writeRequestParametersToCachedContent();
}
return super.getParameterValues(name);
}
代码示例来源:origin: oblac/jodd
/**
* @see javax.servlet.http.HttpServletRequest#getParameterValues(String)
*/
@Override
public String[] getParameterValues(final String name) {
if (mreq == null) {
return super.getParameterValues(name);
}
return mreq.getParameterValues(name);
}
代码示例来源:origin: spring-projects/spring-framework
@Override
@Nullable
public String[] getParameterValues(String name) {
String[] parameterValues = super.getParameterValues(name);
List<String> formParam = this.formParams.get(name);
if (formParam == null) {
return parameterValues;
}
if (parameterValues == null || getQueryString() == null) {
return StringUtils.toStringArray(formParam);
}
else {
List<String> result = new ArrayList<>(parameterValues.length + formParam.size());
result.addAll(Arrays.asList(parameterValues));
result.addAll(formParam);
return StringUtils.toStringArray(result);
}
}
}
代码示例来源:origin: primefaces/primefaces
@Override
public String[] getParameterValues(String name) {
if (formParams.containsKey(name)) {
List<String> values = formParams.get(name);
if (values.isEmpty()) {
return new String[0];
}
else {
return values.toArray(new String[values.size()]);
}
}
else {
return super.getParameterValues(name);
}
}
代码示例来源:origin: spring-projects/spring-framework
@Override
@Nullable
public String[] getParameterValues(String name) {
String[] parameterValues = super.getParameterValues(name);
List<String> formParam = this.formParameters.get(name);
if (formParam == null) {
return parameterValues;
}
if (parameterValues == null || getQueryString() == null) {
return StringUtils.toStringArray(formParam);
}
else {
List<String> result = new ArrayList<>(parameterValues.length + formParam.size());
result.addAll(Arrays.asList(parameterValues));
result.addAll(formParam);
return StringUtils.toStringArray(result);
}
}
}
代码示例来源:origin: wuyouzhuguli/FEBS-Shiro
@Override
public String[] getParameterValues(String name) {
String[] arr = super.getParameterValues(name);
if (arr != null) {
IntStream.range(0, arr.length).forEach(i -> arr[i] = JsoupUtil.clean(arr[i]));
}
return arr;
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String[] getParameterValues(String name) {
String[] values = super.getParameterValues(name);
if (RESPONSE_TYPE.equals(name)) {
for (int i=0; values!=null && i<values.length; i++) {
values[i] = removeIdTokenValue(values[i]);
}
}
return values;
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String[] getParameterValues(String name) {
String[] values = super.getParameterValues(name);
if (values==null || values.length==0) {
return values;
}
String[] result = new String[values.length];
for (int i=0; i<result.length; i++) {
result[i] = convertISO8859_1_to_UTF_8(values[i]);
}
return result;
}
代码示例来源:origin: cloudfoundry/uaa
@Override
public String[] getParameterValues(String name) {
String[] values = super.getParameterValues(name);
if ("scope".equals(name)) {
for (int i=0; values!=null && i<values.length; i++) {
values[i] = translateScope(values[i]);
}
}
return values;
}
代码示例来源:origin: org.springframework/spring-web
@Override
public String[] getParameterValues(String name) {
if (this.cachedContent.size() == 0 && isFormPost()) {
writeRequestParametersToCachedContent();
}
return super.getParameterValues(name);
}
代码示例来源:origin: org.springframework/spring-web
@Override
@Nullable
public String[] getParameterValues(String name) {
String[] parameterValues = super.getParameterValues(name);
List<String> formParam = this.formParameters.get(name);
if (formParam == null) {
return parameterValues;
}
if (parameterValues == null || getQueryString() == null) {
return StringUtils.toStringArray(formParam);
}
else {
List<String> result = new ArrayList<>(parameterValues.length + formParam.size());
result.addAll(Arrays.asList(parameterValues));
result.addAll(formParam);
return StringUtils.toStringArray(result);
}
}
}
代码示例来源:origin: org.springframework/spring-web
@Override
@Nullable
public String[] getParameterValues(String name) {
String[] parameterValues = super.getParameterValues(name);
List<String> formParam = this.formParams.get(name);
if (formParam == null) {
return parameterValues;
}
if (parameterValues == null || getQueryString() == null) {
return StringUtils.toStringArray(formParam);
}
else {
List<String> result = new ArrayList<>(parameterValues.length + formParam.size());
result.addAll(Arrays.asList(parameterValues));
result.addAll(formParam);
return StringUtils.toStringArray(result);
}
}
}
代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel
@Override
public String[] getParameterValues(String name) {
String[] values = _params.get(name);
if (_inherit && (values == null)) {
return super.getParameterValues(name);
}
return values;
}
代码示例来源:origin: paoding-code/paoding-rose
@Override
public String[] getParameterValues(String name) {
String[] value = super.getParameterValues(name);
if (value == null || value.length == 0) {
String _value = parameters.get(name);
if (_value != null) {
value = new String[] { _value };
}
}
// javadoc:
// Returns an array of String objects containing all of the values the given request parameter has,
// or null if the parameter does not exist.
return value == null || value.length == 0 ? null : value;
}
代码示例来源:origin: pig4cloud/pig
@Override
public String[] getParameterValues(String name) {
String[] parameters = super.getParameterValues(name);
if (parameters == null || parameters.length == 0) {
return null;
}
for (int i = 0; i < parameters.length; i++) {
parameters[i] = xssEncode(parameters[i]);
}
return parameters;
}
代码示例来源:origin: i2p/i2p.i2p
String[] values = super.getParameterValues(parameter);
if (parameter.startsWith(NOFILTER))
return values;
代码示例来源:origin: com.atlassian.jira/jira-core
@Override
public String[] getParameterValues(final String name)
{
String[] parameterValues = super.getParameterValues(name);
return parameterValues;
}
代码示例来源:origin: info.magnolia/magnolia-core
@Override
public String[] getParameterValues(String name) {
String[] value = form.getParameterValues(name);
if (value == null) {
value = super.getParameterValues(name);
}
return value;
}
}
内容来源于网络,如有侵权,请联系作者删除!