Commit d3e00a64 authored by Quxl's avatar Quxl

x

parent 0beaa6d8
......@@ -25,7 +25,7 @@ public class UrlBuilder {
* 设置参数
* @param key 参数名
* @param value 参数值
* @return
* @return 返回URL构造器
*/
public UrlBuilder setParameter(String key, String value) {
parameters.put(key, value);
......@@ -36,7 +36,7 @@ public class UrlBuilder {
* 设置头信息
* @param key 参数名
* @param value 参数值
* @return
* @return 返回URL构造器
*/
public UrlBuilder setHeader(String key, String value) {
headers.put(key, value);
......@@ -45,7 +45,7 @@ public class UrlBuilder {
/**
* 获取全部头信息
* @return
* @return 返回全部头信息
*/
public Map<String, String> getHeaders() {
return headers;
......@@ -53,8 +53,8 @@ public class UrlBuilder {
/**
* 转为HTTP链接(URL已编码)
* @return
* @throws UnsupportedEncodingException
* @return 返回已编码URL
* @throws UnsupportedEncodingException URL编码异常
*/
public String toEncodeUrlString() throws UnsupportedEncodingException {
StringBuffer sb = new StringBuffer(url);
......@@ -80,7 +80,7 @@ public class UrlBuilder {
/**
* 转为HTTP链接(URL未编码)
* @return
* @return 返回未编码URL
*/
public String toUrlString() {
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