Skip to content

Commit 19af21f

Browse files
committed
review changes
1 parent 1bf9917 commit 19af21f

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ You do not need to download and build the source to use the SDK but if you want
6969
- Set customHttpClassEnabled to true to make use of Custom Http Library.
7070
- Enter the custom class name in customHttpClass field. Provide the full package name along with the class name.
7171
example customHttpClass= <packagename.customHttpClass>
72+
- The custom HTTP Class must have a three argument constructor which accepts MerchantConfig, DocumentBuilder and LoggerWrapper as argument. Then it should call the constructor of the parent class.
7273
- Build this project using Maven.
7374
a. mvn clean // Cleans the Project
7475

java/src/main/java/com/cybersource/ws/client/Connection.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,15 @@ abstract class Connection {
4747
final MerchantConfig mc;
4848
private final DocumentBuilder builder;
4949
final LoggerWrapper logger;
50-
51-
protected Connection(MerchantConfig mc, DocumentBuilder builder,
50+
51+
/**
52+
* It initializes three arguments MerchantConfig, DocumentBuilder and Logger
53+
* Any class extending this class must implement three argument constructor
54+
* @param mc
55+
* @param builder
56+
* @param logger
57+
*/
58+
protected Connection(MerchantConfig mc, DocumentBuilder builder,
5259
LoggerWrapper logger) {
5360
this.mc = mc;
5461
this.builder = builder;

0 commit comments

Comments
 (0)