Skip to content

Commit

Permalink
update README and other documentation changes (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcottingham authored May 28, 2024
1 parent 8825fab commit c227232
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ or `maven` as:

## Super Simple to Use

Please take a look at our [documentation](https://adobetarget-sdks.gitbook.io/docs/sdk-reference-guides/java-sdk) to learn how to use the Java SDK.
Please take a look at our [documentation](https://experienceleague.adobe.com/en/docs/target-dev/developer/server-side/java/overview) to learn how to use the Java SDK.

## Samples

Expand Down
1 change: 1 addition & 0 deletions codegeneration/codegen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

# Using custom openapi-generator fork based on version 5.2.0 due to the main version introducing breaking changes to our models
rm -rf ./build ../src/main/java/com/adobe/target/delivery/v1
mkdir ../src/main/java/com/adobe/target/delivery/v1
git clone [email protected]:dcottingham/openapi-generator.git
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public void run() {
long retryDelay = DefaultRuleLoader.this.retries * 1000;
message =
String.format(
"Download of local-decisioning rules failed, retrying in %s ms", retryDelay);
"Download of local-decisioning rules failed, retrying in %s ms",
retryDelay);
logger.debug(message);
scheduleTimer(retryDelay);
} else {
Expand Down Expand Up @@ -204,7 +205,6 @@ public String getLocation() {
return this.getLocalDecisioningUrl(this.clientConfig);
}

// For unit test mocking
protected GetRequest generateRequest(ClientConfig clientConfig) {
GetRequest getRequest = unirestInstance.get(getLocalDecisioningUrl(clientConfig));
if (this.lastETag != null) {
Expand All @@ -213,22 +213,18 @@ protected GetRequest generateRequest(ClientConfig clientConfig) {
return getRequest;
}

// For unit test mocking
protected HttpResponse<OnDeviceDecisioningRuleSet> executeRequest(GetRequest getRequest) {
return getRequest.asObject(new GenericType<OnDeviceDecisioningRuleSet>() {});
}

// For unit test mocking
protected void setLatestRules(OnDeviceDecisioningRuleSet ruleSet) {
this.latestRules = ruleSet;
}

// For unit test mocking
protected void setLatestETag(String etag) {
this.lastETag = etag;
}

// For unit test mocking
protected boolean loadRules(ClientConfig clientConfig) {
try {
TargetExceptionHandler handler = clientConfig.getExceptionHandler();
Expand Down

0 comments on commit c227232

Please sign in to comment.