接口 HttpClientRequestInterceptor
public interface HttpClientRequestInterceptor
Intercepts client-side HTTP requests. Implementations of this interface can be.
- 作者:
- mai.jh
-
方法概要
修饰符和类型方法说明if isIntercept method is true Intercept the given request, and return a response Otherwise, theHttpClientRequestwill be used for execution.booleanisIntercept(URI uri, String httpMethod, RequestHttpEntity requestHttpEntity)is intercept.
-
方法详细资料
-
isIntercept
is intercept.- 参数:
uri- urihttpMethod- http methodrequestHttpEntity- request entity- 返回:
- boolean
-
intercept
HttpClientResponse intercept()if isIntercept method is true Intercept the given request, and return a response Otherwise, theHttpClientRequestwill be used for execution.- 返回:
- HttpClientResponse
-