public class HttpUtils extends Object
| 构造器和说明 |
|---|
HttpUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static SortedMap<String,String> |
getAllParams(javax.servlet.http.HttpServletRequest request)
将URL的参数和body参数合并
|
static SortedMap<String,String> |
getAllParams(String url,
String queryString,
byte[] body,
String method)
将URL的参数和body参数合并
|
static Map<String,String> |
getAllRequestParam(byte[] body)
获取 Body 参数
|
static Map<String,String> |
getAllRequestParam(javax.servlet.http.HttpServletRequest request)
获取 Body 参数
|
static Map<String,String> |
getUrlParams(javax.servlet.http.HttpServletRequest request)
将URL请求参数转换成Map
|
static Map<String,String> |
getUrlParams(String queryString)
将URL请求参数转换成Map
|
public static SortedMap<String,String> getAllParams(javax.servlet.http.HttpServletRequest request) throws IOException
request - IOExceptionpublic static SortedMap<String,String> getAllParams(String url, String queryString, byte[] body, String method) throws IOException
queryString - IOExceptionpublic static Map<String,String> getAllRequestParam(javax.servlet.http.HttpServletRequest request) throws IOException
request - IOExceptionpublic static Map<String,String> getAllRequestParam(byte[] body) throws IOException
body - IOExceptionpublic static Map<String,String> getUrlParams(javax.servlet.http.HttpServletRequest request)
request - Copyright © 2023. All rights reserved.