/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 Nordix Foundation.
+ * Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public class NearRicUrlProvider {
- public NearRicUrlProvider() {
- }
-
/**
* Retrieve the base url of the Near-RIC
*
* @return the putPolicy url
*/
public String putPolicyUrl(final String nearRtRicUrl, final String policyId, final String policyTypeId) {
- return UriComponentsBuilder.fromUriString(policiesUrl(nearRtRicUrl)).pathSegment(policyId)
- .pathSegment("?policyTypeId=").pathSegment(policyTypeId).build().toString();
+ return UriComponentsBuilder.fromUriString(policiesUrl(nearRtRicUrl))
+ .pathSegment(policyId + "?policyTypeId=" + policyTypeId).build().toString();
}
/**