@Component
public class ZProxyUtil
extends java.lang.Object
构造器和说明 |
---|
ZProxyUtil() |
限定符和类型 | 方法和说明 |
---|---|
void |
sedGetHttp(java.lang.String url,
java.util.Map header,
javax.servlet.http.HttpServletResponse response)
发送GET请求
|
void |
sedHttp(java.lang.String httpUrl,
javax.servlet.http.HttpServletResponse response)
发送请求
|
void |
sedHttpByType(java.lang.String type,
java.lang.String httpUrl,
javax.servlet.http.HttpServletResponse response)
根据类型发送请求,默认为POST请求
|
void |
sedPostHttp(java.lang.String url,
java.util.Map header,
javax.servlet.http.HttpServletResponse response)
发送POST请求
|
static byte[] |
toByteArray(java.io.InputStream input)
输入流转换字节数据
|
public void sedHttp(java.lang.String httpUrl, javax.servlet.http.HttpServletResponse response)
httpUrl
- 请求地址response
- 请求返回体public void sedHttpByType(java.lang.String type, java.lang.String httpUrl, javax.servlet.http.HttpServletResponse response)
type
- 请求类型httpUrl
- 请求地址response
- 请求返回体public void sedGetHttp(java.lang.String url, java.util.Map header, javax.servlet.http.HttpServletResponse response)
url
- 请求地址header
- 自定义头部response
- 请求返回体public void sedPostHttp(java.lang.String url, java.util.Map header, javax.servlet.http.HttpServletResponse response)
url
- 请求地址header
- 自定义头部response
- 请求返回体public static byte[] toByteArray(java.io.InputStream input)
input
- 输入流