diff options
Diffstat (limited to 'common/src/main/java/org/onap/so/client/policy/PolicyRestClient.java')
-rw-r--r-- | common/src/main/java/org/onap/so/client/policy/PolicyRestClient.java | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/common/src/main/java/org/onap/so/client/policy/PolicyRestClient.java b/common/src/main/java/org/onap/so/client/policy/PolicyRestClient.java index 9427fa7eb9..95bc4282ae 100644 --- a/common/src/main/java/org/onap/so/client/policy/PolicyRestClient.java +++ b/common/src/main/java/org/onap/so/client/policy/PolicyRestClient.java @@ -23,32 +23,30 @@ package org.onap.so.client.policy; import java.util.Map; import java.util.Optional; - import javax.ws.rs.core.UriBuilder; - import org.onap.so.client.RestClient; import org.onap.so.client.policy.entities.PolicyServiceType; import org.onap.so.utils.TargetEntity; public class PolicyRestClient extends RestClient { - private final PolicyRestProperties properties; + private final PolicyRestProperties properties; - public PolicyRestClient(PolicyRestProperties props, PolicyServiceType serviceType) { - super(props, Optional.of(UriBuilder.fromPath(serviceType.toString()).build())); - this.properties = props; - } + public PolicyRestClient(PolicyRestProperties props, PolicyServiceType serviceType) { + super(props, Optional.of(UriBuilder.fromPath(serviceType.toString()).build())); + this.properties = props; + } @Override - public TargetEntity getTargetEntity(){ + public TargetEntity getTargetEntity() { return TargetEntity.POLICY; } - @Override - protected void initializeHeaderMap(Map<String, String> headerMap) { - headerMap.put("ClientAuth", properties.getClientAuth()); - headerMap.put("Authorization", properties.getAuth()); - headerMap.put("Environment", properties.getEnvironment()); - } + @Override + protected void initializeHeaderMap(Map<String, String> headerMap) { + headerMap.put("ClientAuth", properties.getClientAuth()); + headerMap.put("Authorization", properties.getAuth()); + headerMap.put("Environment", properties.getEnvironment()); + } -}
\ No newline at end of file +} |