public class UrlBuilder extends Object
构造URL
Modifier and Type | Method and Description |
---|---|
String |
build()
构造url
|
String |
build(boolean encode)
构造url
|
static UrlBuilder |
fromBaseUrl(String baseUrl) |
Map<String,Object> |
getReadOnlyParams()
只读的参数Map
|
UrlBuilder |
queryParam(String key,
Object value)
添加参数
|
public static UrlBuilder fromBaseUrl(String baseUrl)
baseUrl
- 基础路径UrlBuilder
public Map<String,Object> getReadOnlyParams()
public UrlBuilder queryParam(String key, Object value)
key
- 参数名称value
- 参数值public String build()
public String build(boolean encode)
encode
- 转码Copyright © 2021. All rights reserved.