Commit d3e00a64 authored by Quxl's avatar Quxl

x

parent 0beaa6d8
...@@ -25,7 +25,7 @@ public class UrlBuilder { ...@@ -25,7 +25,7 @@ public class UrlBuilder {
* 设置参数 * 设置参数
* @param key 参数名 * @param key 参数名
* @param value 参数值 * @param value 参数值
* @return * @return 返回URL构造器
*/ */
public UrlBuilder setParameter(String key, String value) { public UrlBuilder setParameter(String key, String value) {
parameters.put(key, value); parameters.put(key, value);
...@@ -36,7 +36,7 @@ public class UrlBuilder { ...@@ -36,7 +36,7 @@ public class UrlBuilder {
* 设置头信息 * 设置头信息
* @param key 参数名 * @param key 参数名
* @param value 参数值 * @param value 参数值
* @return * @return 返回URL构造器
*/ */
public UrlBuilder setHeader(String key, String value) { public UrlBuilder setHeader(String key, String value) {
headers.put(key, value); headers.put(key, value);
...@@ -45,7 +45,7 @@ public class UrlBuilder { ...@@ -45,7 +45,7 @@ public class UrlBuilder {
/** /**
* 获取全部头信息 * 获取全部头信息
* @return * @return 返回全部头信息
*/ */
public Map<String, String> getHeaders() { public Map<String, String> getHeaders() {
return headers; return headers;
...@@ -53,8 +53,8 @@ public class UrlBuilder { ...@@ -53,8 +53,8 @@ public class UrlBuilder {
/** /**
* 转为HTTP链接(URL已编码) * 转为HTTP链接(URL已编码)
* @return * @return 返回已编码URL
* @throws UnsupportedEncodingException * @throws UnsupportedEncodingException URL编码异常
*/ */
public String toEncodeUrlString() throws UnsupportedEncodingException { public String toEncodeUrlString() throws UnsupportedEncodingException {
StringBuffer sb = new StringBuffer(url); StringBuffer sb = new StringBuffer(url);
...@@ -80,7 +80,7 @@ public class UrlBuilder { ...@@ -80,7 +80,7 @@ public class UrlBuilder {
/** /**
* 转为HTTP链接(URL未编码) * 转为HTTP链接(URL未编码)
* @return * @return 返回未编码URL
*/ */
public String toUrlString() { public String toUrlString() {
StringBuffer sb = new StringBuffer(url); StringBuffer sb = new StringBuffer(url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment