diff options
Diffstat (limited to 'common/src/main/java/org/onap/so/client/grm/GRMRestClient.java')
-rw-r--r-- | common/src/main/java/org/onap/so/client/grm/GRMRestClient.java | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/common/src/main/java/org/onap/so/client/grm/GRMRestClient.java b/common/src/main/java/org/onap/so/client/grm/GRMRestClient.java index 0bb55e627a..fa155de6a2 100644 --- a/common/src/main/java/org/onap/so/client/grm/GRMRestClient.java +++ b/common/src/main/java/org/onap/so/client/grm/GRMRestClient.java @@ -25,33 +25,32 @@ import java.net.URI; import java.util.Base64; import java.util.Map; import java.util.Optional; - import org.onap.so.client.RestClient; import org.onap.so.client.RestProperties; import org.onap.so.utils.TargetEntity; public class GRMRestClient extends RestClient { - private final GRMProperties properties; - - public GRMRestClient(GRMProperties props, URI path) { - super(props, Optional.of(path)); - this.properties = props; - } + private final GRMProperties properties; + + public GRMRestClient(GRMProperties props, URI path) { + super(props, Optional.of(path)); + this.properties = props; + } @Override - public TargetEntity getTargetEntity(){ + public TargetEntity getTargetEntity() { return TargetEntity.GRM; } - @Override - protected void initializeHeaderMap(Map<String, String> headerMap) { - String auth = properties.getAuth(); - String key = properties.getKey(); + @Override + protected void initializeHeaderMap(Map<String, String> headerMap) { + String auth = properties.getAuth(); + String key = properties.getKey(); - if (auth != null && !auth.isEmpty() && key != null && !key.isEmpty()) { - addBasicAuthHeader(auth, key); - } - } + if (auth != null && !auth.isEmpty() && key != null && !key.isEmpty()) { + addBasicAuthHeader(auth, key); + } + } } |