Skip to content

Commit

Permalink
Merge pull request #59 from aem-design/fix/agentConfig
Browse files Browse the repository at this point in the history
Added condition to assign agent config
  • Loading branch information
wildone authored Apr 12, 2021
2 parents c60e6aa + 4e6ad36 commit 4191359
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,12 @@ public class AkamaiTransportHandler implements TransportHandler {
private CryptoSupport cryptoSupport;

public boolean canHandle(AgentConfig config) {
agentConfig = config;
String transportURI = config.getTransportURI();
return (transportURI != null) ? transportURI.toLowerCase().startsWith(AKAMAI_PROTOCOL) : false;
if(transportURI.toLowerCase().startsWith(AKAMAI_PROTOCOL)) {
agentConfig = config;
return true;
}
return false;
}

public ReplicationResult deliver(TransportContext ctx, ReplicationTransaction tx) throws ReplicationException {
Expand Down

0 comments on commit 4191359

Please sign in to comment.