/*-
* ============LICENSE_START=======================================================
- * OPENECOMP - MSO
+ * ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
@Service
public class PolicyRestClient extends RestClient {
- private static final String X_ECOMP_REQUESTID = String.valueOf(UUID.randomUUID());
+ private static final UUID X_ECOMP_REQUESTID = UUID.randomUUID();
private final PolicyRestProperties properties;
public PolicyRestClient(PolicyRestProperties props, PolicyServiceType serviceType) {
- super(props, Optional.of(UriBuilder.fromPath(serviceType.toString()).build()));
+ super(props, UUID.randomUUID(), Optional.of(UriBuilder.fromPath(serviceType.toString()).build()));
this.properties = props;
this.getClient();
}
}
@Override
- public RestClient addRequestId(String requestId) {
- this.headerMap.put("X-ECOMP-RequestID", requestId);
+ public RestClient addRequestId(UUID requestId) {
+ this.headerMap.put("X-ECOMP-RequestID", requestId.toString());
return this;
}
-}
\ No newline at end of file
+}