-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 新增 ProxyFactory,支持动态获取 HttpHost (#214)
- Loading branch information
Showing
3 changed files
with
116 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/wechat/pay/contrib/apache/httpclient/proxy/HttpProxyFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.wechat.pay.contrib.apache.httpclient.proxy; | ||
|
||
import org.apache.http.HttpHost; | ||
|
||
/** | ||
* HttpProxyFactory 代理工厂 | ||
* | ||
* @author ramzeng | ||
*/ | ||
public interface HttpProxyFactory { | ||
|
||
/** | ||
* 构建代理 | ||
* | ||
* @return 代理 | ||
*/ | ||
HttpHost buildHttpProxy(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters