org.apache.commons.httpclient.URI.setRawQuery()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(7.7k)|赞(0)|评价(0)|浏览(78)

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

URI.setRawQuery介绍

[英]Set the raw-escaped query.
[中]设置原始转义查询。

代码示例

代码示例来源:origin: commons-httpclient/commons-httpclient

/**
 * Set the escaped query string.
 *
 * @param escapedQuery the escaped query string
 * @throws URIException escaped query not valid
 */
public void setEscapedQuery(String escapedQuery) throws URIException {
  if (escapedQuery == null) {
    _query = null;
    setURI();
    return;
  }
  setRawQuery(escapedQuery.toCharArray());
}

代码示例来源:origin: commons-httpclient/commons-httpclient

/**
 * Set the query.
 * <p>
 * When a query string is not misunderstood the reserved special characters
 * ("&amp;", "=", "+", ",", and "$") within a query component, it is
 * recommended to use in encoding the whole query with this method.
 * <p>
 * The additional APIs for the special purpose using by the reserved
 * special characters used in each protocol are implemented in each protocol
 * classes inherited from <code>URI</code>.  So refer to the same-named APIs
 * implemented in each specific protocol instance.
 *
 * @param query the query string.
 * @throws URIException incomplete trailing escape pattern or unsupported
 * character encoding
 * @see #encode
 */
public void setQuery(String query) throws URIException {
  if (query == null || query.length() == 0) {
    _query = (query == null) ? null : query.toCharArray();
    setURI();
    return;
  }
  setRawQuery(encode(query, allowed_query, getProtocolCharset()));
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Set the escaped query string.
 *
 * @param escapedQuery the escaped query string
 * @throws URIException escaped query not valid
 */
public void setEscapedQuery(String escapedQuery) throws URIException {
  if (escapedQuery == null) {
    _query = null;
    setURI();
    return;
  }
  setRawQuery(escapedQuery.toCharArray());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * Set the escaped query string.
 *
 * @param escapedQuery the escaped query string
 * @throws URIException escaped query not valid
 */
public void setEscapedQuery(String escapedQuery) throws URIException {
  if (escapedQuery == null) {
    _query = null;
    setURI();
    return;
  }
  setRawQuery(escapedQuery.toCharArray());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Set the escaped query string.
 *
 * @param escapedQuery the escaped query string
 * @throws URIException escaped query not valid
 */
public void setEscapedQuery(String escapedQuery) throws URIException {
  if (escapedQuery == null) {
    _query = null;
    setURI();
    return;
  }
  setRawQuery(escapedQuery.toCharArray());
}

代码示例来源:origin: org.apache.commons/httpclient

/**
 * Set the escaped query string.
 *
 * @param escapedQuery the escaped query string
 * @throws URIException escaped query not valid
 */
public void setEscapedQuery(String escapedQuery) throws URIException {
  if (escapedQuery == null) {
    _query = null;
    setURI();
    return;
  }
  setRawQuery(escapedQuery.toCharArray());
}

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Set the escaped query string.
 *
 * @param escapedQuery the escaped query string
 * @throws URIException escaped query not valid
 */
public void setEscapedQuery(String escapedQuery) throws URIException {
  if (escapedQuery == null) {
    _query = null;
    setURI();
    return;
  }
  setRawQuery(escapedQuery.toCharArray());
}

代码示例来源:origin: org.zaproxy/zap

/**
 * Set the query.
 * <p>
 * When a query string is not misunderstood the reserved special characters
 * ("&amp;", "=", "+", ",", and "$") within a query component, it is
 * recommended to use in encoding the whole query with this method.
 * <p>
 * The additional APIs for the special purpose using by the reserved
 * special characters used in each protocol are implemented in each protocol
 * classes inherited from <code>URI</code>.  So refer to the same-named APIs
 * implemented in each specific protocol instance.
 *
 * @param query the query string.
 * @throws URIException incomplete trailing escape pattern or unsupported
 * character encoding
 * @see #encode
 */
public void setQuery(String query) throws URIException {
  if (query == null || query.length() == 0) {
    _query = (query == null) ? null : query.toCharArray();
    setURI();
    return;
  }
  setRawQuery(encode(query, allowed_query, getProtocolCharset()));
}

代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient

/**
 * Set the query.
 * <p>
 * When a query string is not misunderstood the reserved special characters
 * ("&amp;", "=", "+", ",", and "$") within a query component, it is
 * recommended to use in encoding the whole query with this method.
 * <p>
 * The additional APIs for the special purpose using by the reserved
 * special characters used in each protocol are implemented in each protocol
 * classes inherited from <code>URI</code>.  So refer to the same-named APIs
 * implemented in each specific protocol instance.
 *
 * @param query the query string.
 * @throws URIException incomplete trailing escape pattern or unsupported
 * character encoding
 * @see #encode
 */
public void setQuery(String query) throws URIException {
  if (query == null || query.length() == 0) {
    _query = (query == null) ? null : query.toCharArray();
    setURI();
    return;
  }
  setRawQuery(encode(query, allowed_query, getProtocolCharset()));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient

/**
 * Set the query.
 * <p>
 * When a query string is not misunderstood the reserved special characters
 * ("&amp;", "=", "+", ",", and "$") within a query component, it is
 * recommended to use in encoding the whole query with this method.
 * <p>
 * The additional APIs for the special purpose using by the reserved
 * special characters used in each protocol are implemented in each protocol
 * classes inherited from <code>URI</code>.  So refer to the same-named APIs
 * implemented in each specific protocol instance.
 *
 * @param query the query string.
 * @throws URIException incomplete trailing escape pattern or unsupported
 * character encoding
 * @see #encode
 */
public void setQuery(String query) throws URIException {
  if (query == null || query.length() == 0) {
    _query = (query == null) ? null : query.toCharArray();
    setURI();
    return;
  }
  setRawQuery(encode(query, allowed_query, getProtocolCharset()));
}

代码示例来源:origin: org.apache.commons/httpclient

/**
 * Set the query.
 * <p>
 * When a query string is not misunderstood the reserved special characters
 * ("&amp;", "=", "+", ",", and "$") within a query component, it is
 * recommended to use in encoding the whole query with this method.
 * <p>
 * The additional APIs for the special purpose using by the reserved
 * special characters used in each protocol are implemented in each protocol
 * classes inherited from <code>URI</code>.  So refer to the same-named APIs
 * implemented in each specific protocol instance.
 *
 * @param query the query string.
 * @throws URIException incomplete trailing escape pattern or unsupported
 * character encoding
 * @see #encode
 */
public void setQuery(String query) throws URIException {
  if (query == null || query.length() == 0) {
    _query = (query == null) ? null : query.toCharArray();
    setURI();
    return;
  }
  setRawQuery(encode(query, allowed_query, getProtocolCharset()));
}

代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient

/**
 * Set the query.
 * <p>
 * When a query string is not misunderstood the reserved special characters
 * ("&amp;", "=", "+", ",", and "$") within a query component, it is
 * recommended to use in encoding the whole query with this method.
 * <p>
 * The additional APIs for the special purpose using by the reserved
 * special characters used in each protocol are implemented in each protocol
 * classes inherited from <code>URI</code>.  So refer to the same-named APIs
 * implemented in each specific protocol instance.
 *
 * @param query the query string.
 * @throws URIException incomplete trailing escape pattern or unsupported
 * character encoding
 * @see #encode
 */
public void setQuery(String query) throws URIException {
  if (query == null || query.length() == 0) {
    _query = (query == null) ? null : query.toCharArray();
    setURI();
    return;
  }
  setRawQuery(encode(query, allowed_query, getProtocolCharset()));
}

相关文章