public final class HttpParameters extends Object
| 构造器和说明 |
|---|
HttpParameters() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
appendCookieArrayMap(Map<String,List<String>> newCookie)
将 newCookie 合并到 cookie 中,遇到冲突 key 合并它们
|
static boolean |
appendHeaderArrayMap(Map<String,List<String>> newHeader)
将 newHeader 合并到 header 中,遇到冲突 key 合并它们
|
static boolean |
appendPathArrayMap(Map<String,List<String>> newPath)
将 newPath 合并到 `查询参数` 中,遇到冲突 key 合并它们
|
static boolean |
appendQueryArrayMap(Map<String,List<String>> newQuery)
将 newQuery 合并到 `查询参数` 中,遇到冲突 key 合并它们
|
static boolean |
appendRequestArrayMap(Map<String,List<String>> newRequestParam)
将 newPath 合并到 `请求参数` 中,遇到冲突 key 合并它们
|
static boolean |
clearReplaceCookieArrayMap(Map<String,List<String>> newCookie)
清空并替换 cookie
|
static boolean |
clearReplaceHeaderArrayMap(Map<String,List<String>> newHeader)
清空并替换 newHeader
|
static boolean |
clearReplacePathArrayMap(Map<String,List<String>> newPath)
清空并替换 `查询参数`
|
static boolean |
clearReplaceQueryArrayMap(Map<String,List<String>> newQuery)
清空并替换 `查询参数`
|
static boolean |
clearReplaceRequestArrayMap(Map<String,List<String>> newRequestParam)
清空并替换 `请求参数`
|
static Map<String,List<String>> |
cookieArrayMap()
获取 cookie ,Map 的 Value 是数组
|
static Map<String,String> |
cookieMap()
获取 cookie ,数据是 Map 形式
|
protected static <T> T |
executeWorker(Invoker invoker,
net.hasor.utils.function.ESupplier<T,Throwable> worker) |
static Map<String,List<String>> |
headerArrayMap()
获取 header ,Map 的 Value 是数组
|
static Map<String,String> |
headerMap()
获取 header ,数据是 Map 形式
|
static Invoker |
localInvoker()
获取 Invoker
|
static boolean |
mergeReplaceCookieArrayMap(Map<String,List<String>> newCookie)
将 newCookie 合并到 cookie 中,遇到冲突 key 用新的进行替换
|
static boolean |
mergeReplaceHeaderArrayMap(Map<String,List<String>> newHeader)
将 newHeader 合并到 header 中,遇到冲突 key 用新的进行替换
|
static boolean |
mergeReplacePathArrayMap(Map<String,List<String>> newPath)
将 newPath 合并到 `查询参数` 中,遇到冲突 key 用新的进行替换
|
static boolean |
mergeReplaceQueryArrayMap(Map<String,List<String>> newQuery)
将 newQuery 合并到 `查询参数` 中,遇到冲突 key 用新的进行替换
|
static boolean |
mergeReplaceRequestArrayMap(Map<String,List<String>> newRequestParam)
将 newPath 合并到 `请求参数` 中,遇到冲突 key 用新的进行替换
|
static Map<String,List<String>> |
pathArrayMap()
获取 URL 请求路径上的查询参数 ,Map 的 Value 是数组
|
static Map<String,String> |
pathMap()
获取 URL 请求路径上的查询参数 ,数据是 Map 形式
|
static Map<String,List<String>> |
queryArrayMap()
获取 URL "?"
|
static Map<String,String> |
queryMap()
获取 URL "?"
|
static Map<String,List<String>> |
requestArrayMap()
获取 Http 标准的请求参数 ,Map 的 Value 是数组
|
static Map<String,String> |
requestMap()
获取 Http 标准的请求参数 ,数据是 Map 形式
|
protected static <T> T executeWorker(Invoker invoker, net.hasor.utils.function.ESupplier<T,Throwable> worker) throws Throwable
Throwablepublic static boolean clearReplaceCookieArrayMap(Map<String,List<String>> newCookie)
public static boolean mergeReplaceCookieArrayMap(Map<String,List<String>> newCookie)
public static boolean appendCookieArrayMap(Map<String,List<String>> newCookie)
public static Invoker localInvoker()
public static boolean clearReplaceHeaderArrayMap(Map<String,List<String>> newHeader)
public static boolean mergeReplaceHeaderArrayMap(Map<String,List<String>> newHeader)
public static boolean appendHeaderArrayMap(Map<String,List<String>> newHeader)
public static Map<String,List<String>> queryArrayMap()
public static boolean clearReplaceQueryArrayMap(Map<String,List<String>> newQuery)
public static boolean mergeReplaceQueryArrayMap(Map<String,List<String>> newQuery)
public static boolean appendQueryArrayMap(Map<String,List<String>> newQuery)
public static Map<String,List<String>> pathArrayMap()
public static boolean clearReplacePathArrayMap(Map<String,List<String>> newPath)
public static boolean mergeReplacePathArrayMap(Map<String,List<String>> newPath)
public static boolean appendPathArrayMap(Map<String,List<String>> newPath)
public static Map<String,List<String>> requestArrayMap()
public static boolean clearReplaceRequestArrayMap(Map<String,List<String>> newRequestParam)
public static boolean mergeReplaceRequestArrayMap(Map<String,List<String>> newRequestParam)
Copyright © 2020–2021. All rights reserved.