javax.servlet.http.HttpServletRequestWrapper.getQueryString()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(229)

本文整理了Java中javax.servlet.http.HttpServletRequestWrapper.getQueryString()方法的一些代码示例,展示了HttpServletRequestWrapper.getQueryString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpServletRequestWrapper.getQueryString()方法的具体详情如下:
包路径:javax.servlet.http.HttpServletRequestWrapper
类名称:HttpServletRequestWrapper
方法名:getQueryString

HttpServletRequestWrapper.getQueryString介绍

[英]The default behavior of this method is to return getQueryString() on the wrapped request object.
[中]此方法的默认行为是在包装的请求对象上返回getQueryString()。

代码示例

代码示例来源:origin: cloudfoundry/uaa

@Override
public String getQueryString() {
  return super.getQueryString();
}

代码示例来源:origin: webx/citrus

@Override
public String getQueryString() {
  if (overrideQueryString == null) {
    return super.getQueryString();
  } else {
    return overrideQueryString;
  }
}

代码示例来源:origin: webx/citrus

@Override
public String getQueryString() {
  if (overrideQueryString == null) {
    return super.getQueryString();
  } else {
    return overrideQueryString;
  }
}

代码示例来源:origin: 58code/Argo

public Map<String, Collection<String>> queryStrings() {
  if (queryStrings != null)
    return queryStrings;
  MultiMap<String> params = new MultiMap<String>();
  String originQueryString = super.getQueryString();
  
  if(queryStrings != null){
    
    UrlEncoded.decodeTo(originQueryString, params, "UTF-8", maxFormKeys);

    queryStrings = NullToEmptyMap.safeWrapper(params, getSafeParameter());
  }
  return queryStrings;
}

代码示例来源:origin: com.github.wuic/wuic-servlet

/**
 * {@inheritDoc}
 */
@Override
public String getQueryString() {
  // Synchronized access
  synchronized (mutex) {
    return super.getQueryString();
  }
}

代码示例来源:origin: com.atlassian.jira/jira-core

@Override
public String getQueryString()
{
  String queryString = super.getQueryString();
  return queryString;
}

代码示例来源:origin: org.seleniumhq.selenium.server/selenium-server-coreless

public String getQueryString()
{
  if (this._query==null)
    return super.getQueryString();
  return this._query;
}

代码示例来源:origin: org.seleniumhq.selenium/jetty-rc-repacked

public String getQueryString()
{
  if (this._query==null)
    return super.getQueryString();
  return this._query;
}

代码示例来源:origin: hdiv/hdiv

@Override
public String getQueryString() {
  if (modifiedQueryString != null) {
    return modifiedQueryString;
  }
  return super.getQueryString();
}

代码示例来源:origin: sk.seges.acris/acris-security-core

@Override
public String getQueryString() {
  if (queryString != null && !queryString.isEmpty()) {
    return queryString;
  }
  return super.getQueryString();
}

代码示例来源:origin: org.n52.security/52n-security-authn-web

@Override
public String getQueryString() {
  String queryString = super.getQueryString();
  if(queryString != null) return queryString.replaceFirst("(" + m_paramName + "=[0-9%a-zA-Z_\\?=-]*&?)&?", "");
  return null;
}

代码示例来源:origin: cn.jeeweb/jeeweb-common-base

@Override
public String getQueryString() {
  return StringEscapeUtils.escapeHtml4(super.getQueryString());
}

代码示例来源:origin: Jasig/uPortal

@Override
public String getQueryString() {
  this.checkState();
  return super.getQueryString();
}

代码示例来源:origin: org.jasig.portal/uPortal-rendering

@Override
public String getQueryString() {
  this.checkState();
  return super.getQueryString();
}

代码示例来源:origin: Caratacus/Crown

@Override
public String getQueryString() {
  String value = super.getQueryString();
  if (value == null) {
    return null;
  }
  return htmlEscape(value);
}

代码示例来源:origin: shawntime/shawn-common-utils

public String getQueryString() {
  String value = super.getQueryString();
  if (value != null) {
    value = xssEncode(value);
  }
  return value;
}

代码示例来源:origin: org.apache.wink/wink-server

@Override
public String getQueryString() {
  return getCorrectRequest().getQueryString();
}

代码示例来源:origin: org.apache.knox/gateway-provider-identity-assertion-common

private Map<String, List<String>> getParams()
  throws UnsupportedEncodingException {
 return getParams( super.getQueryString() );
}

代码示例来源:origin: codice/ddf

@Override
 public String getQueryString() {
  String queryString = super.getQueryString();
  // If query string ends with an ampersand, take it off
  if (StringUtils.endsWith(queryString, "&")) {
   queryString = StringUtils.chop(queryString);
  }
  return queryString;
 }
}

代码示例来源:origin: org.jvnet.hudson.winstone/winstone

public String getQueryString() {
  if (hasBeenForwarded()) {
    return super.getQueryString();
  } else {
    return this.oldRequest.getQueryString();
  }
}

相关文章

HttpServletRequestWrapper类方法