- public String getPolicyUrl(final String nearRtRicUrl, final String policyId) {
- return UriComponentsBuilder.fromUriString(getBaseUrl(nearRtRicUrl)).pathSegment("policies")
- .pathSegment(policyId).build().toString();
+ public String putPolicyUrl(final String nearRtRicUrl, final String policyId, final String policyTypeId) {
+ return UriComponentsBuilder.fromUriString(policiesUrl(nearRtRicUrl))
+ .pathSegment(policyId + "?policyTypeId=" + policyTypeId).build().toString();
+ }
+
+ /**
+ * Retrieve the url of deletePolicy
+ *
+ * @param nearRtRicUrl the near-rt-ric url
+ * @param policyId Policy Id
+ * @return the deletePolicy url
+ */
+ public String deletePolicyUrl(final String nearRtRicUrl, final String policyId) {
+ return UriComponentsBuilder.fromUriString(policiesUrl(nearRtRicUrl)).pathSegment(policyId)
+ .build().toString();