-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
304 additions
and
125 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
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
37 changes: 37 additions & 0 deletions
37
core/src/main/java/com/wechat/pay/java/core/http/AbstractHttpClientBuilder.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,37 @@ | ||
package com.wechat.pay.java.core.http; | ||
|
||
import com.wechat.pay.java.core.auth.Credential; | ||
import com.wechat.pay.java.core.auth.Validator; | ||
|
||
public interface AbstractHttpClientBuilder<T extends AbstractHttpClientBuilder<T>> { | ||
|
||
/** | ||
* 复制工厂,复制一个当前对象 | ||
* | ||
* @return 对象的副本 | ||
*/ | ||
T newInstance(); | ||
|
||
/** | ||
* 设置验证器 | ||
* | ||
* @param validator 验证器 | ||
* @return the AbstractHttpClientBuilder | ||
*/ | ||
T validator(Validator validator); | ||
|
||
/** | ||
* 设置凭据生成器 | ||
* | ||
* @param credential 凭据生成器 | ||
* @return the AbstractHttpClientBuilder | ||
*/ | ||
T credential(Credential credential); | ||
|
||
/** | ||
* 构建 AbstractHttpClient | ||
* | ||
* @return AbstractHttpClient | ||
*/ | ||
AbstractHttpClient build(); | ||
} |
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
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
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
95 changes: 0 additions & 95 deletions
95
...c/test/java/com/wechat/pay/java/core/certificate/AbstractAutoCertificateProviderTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.